X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/342f4ed11da7860e834928aa79974f096a8f6291..c872f6b8420d83f2b378a274c412e3bc1865cd8c:/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..e14f98f9b2 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,17 +55,19 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ }, logViewer: { height: '100%', + overflowY: 'scroll', // Required for MacOS's Safari -- See #19687 }, logViewerContainer: { height: '100%', }, title: { overflow: 'hidden', - paddingTop: theme.spacing.unit * 0.5 + paddingTop: theme.spacing.unit * 0.5, + color: theme.customs.colors.greyD }, iconHeader: { fontSize: '1.875rem', - color: theme.customs.colors.green700 + color: theme.customs.colors.greyL }, root: { height: '100%', @@ -91,8 +95,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 +134,9 @@ export const ProcessLogsCard = withStyles(styles)( - - setWordWrapToggle(!wordWrapToggle)}> - + + setWordWrap(!wordWrap)}> + {wordWrap ? : } @@ -143,15 +147,18 @@ export const ProcessLogsCard = withStyles(styles)( + { doUnMaximizePanel && panelMaximized && + + + } { doMaximizePanel && !panelMaximized && } - { doHidePanel && - - - - } + { doHidePanel && + + + } } title={ @@ -166,7 +173,7 @@ export const ProcessLogsCard = withStyles(styles)( spacing={24} direction='column'> - + :