X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/22c5c7be1500c7fa0b9d23fd5004aa0839671dcf..034bf8ad6df6c47d3c392ae8233c8d08dc6b4609:/src/views/process-panel/process-log-card.tsx diff --git a/src/views/process-panel/process-log-card.tsx b/src/views/process-panel/process-log-card.tsx index 936b31a549..4890c726f4 100644 --- a/src/views/process-panel/process-log-card.tsx +++ b/src/views/process-panel/process-log-card.tsx @@ -22,6 +22,7 @@ import { CopyIcon, LogIcon, MaximizeIcon, + UnMaximizeIcon, TextDecreaseIcon, TextIncreaseIcon, WordWrapOffIcon, @@ -54,6 +55,7 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, logViewer: { height: '100%', + overflowY: 'scroll', // Required for MacOS's Safari -- See #19687 }, logViewerContainer: { height: '100%', @@ -92,7 +94,7 @@ type ProcessLogsCardProps = ProcessLogsCardDataProps export const ProcessLogsCard = withStyles(styles)( ({ classes, process, filters, selectedFilter, lines, onLogFilterChange, navigateToLog, onCopy, - doHidePanel, doMaximizePanel, panelMaximized, panelName }: ProcessLogsCardProps) => { + doHidePanel, doMaximizePanel, doUnMaximizePanel, panelMaximized, panelName }: ProcessLogsCardProps) => { const [wordWrap, setWordWrap] = useState(true); const [fontSize, setFontSize] = useState(3); const fontBaseSize = 10; @@ -144,15 +146,18 @@ export const ProcessLogsCard = withStyles(styles)( + { doUnMaximizePanel && panelMaximized && + + + } { doMaximizePanel && !panelMaximized && } - { doHidePanel && - - - - } + { doHidePanel && + + + } } title={