X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/342f4ed11da7860e834928aa79974f096a8f6291..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 ac409ec187..4890c726f4 100644 --- a/src/views/process-panel/process-log-card.tsx +++ b/src/views/process-panel/process-log-card.tsx @@ -22,9 +22,11 @@ import { CopyIcon, LogIcon, MaximizeIcon, + UnMaximizeIcon, TextDecreaseIcon, TextIncreaseIcon, - WordWrapIcon + WordWrapOffIcon, + WordWrapOnIcon, } from 'components/icon/icon'; import { Process } from 'store/processes/process'; import { MPVPanelProps } from 'components/multi-panel-view/multi-panel-view'; @@ -53,6 +55,7 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, logViewer: { height: '100%', + overflowY: 'scroll', // Required for MacOS's Safari -- See #19687 }, logViewerContainer: { height: '100%', @@ -91,8 +94,8 @@ type ProcessLogsCardProps = ProcessLogsCardDataProps export const ProcessLogsCard = withStyles(styles)( ({ classes, process, filters, selectedFilter, lines, onLogFilterChange, navigateToLog, onCopy, - doHidePanel, doMaximizePanel, panelMaximized, panelName }: ProcessLogsCardProps) => { - const [wordWrapToggle, setWordWrapToggle] = useState(true); + doHidePanel, doMaximizePanel, doUnMaximizePanel, panelMaximized, panelName }: ProcessLogsCardProps) => { + const [wordWrap, setWordWrap] = useState(true); const [fontSize, setFontSize] = useState(3); const fontBaseSize = 10; const fontStepSize = 1; @@ -130,9 +133,9 @@ export const ProcessLogsCard = withStyles(styles)( - - setWordWrapToggle(!wordWrapToggle)}> - + + setWordWrap(!wordWrap)}> + {wordWrap ? : } @@ -143,15 +146,18 @@ export const ProcessLogsCard = withStyles(styles)( + { doUnMaximizePanel && panelMaximized && + + + } { doMaximizePanel && !panelMaximized && } - { doHidePanel && - - - - } + { doHidePanel && + + + } } title={ @@ -166,7 +172,7 @@ export const ProcessLogsCard = withStyles(styles)( spacing={24} direction='column'> - + :