X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2aff408211e84a226af6f74cb9338cbaf3fc4645..6dfef004d33b147cbe80bbb5ecc6922ac25f156d:/services/workbench2/src/views/process-panel/process-log-code-snippet.tsx diff --git a/services/workbench2/src/views/process-panel/process-log-code-snippet.tsx b/services/workbench2/src/views/process-panel/process-log-code-snippet.tsx index 77857822a4..f42dcaf542 100644 --- a/services/workbench2/src/views/process-panel/process-log-code-snippet.tsx +++ b/services/workbench2/src/views/process-panel/process-log-code-snippet.tsx @@ -20,7 +20,7 @@ import classNames from 'classnames'; import { FederationConfig, getNavUrl } from 'routes/routes'; import { RootState } from 'store/store'; -type CssRules = 'root' | 'wordWrap' | 'logText'; +type CssRules = 'root' | 'wordWrapOn' | 'wordWrapOff' | 'logText'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { @@ -35,8 +35,11 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ logText: { padding: `0 ${theme.spacing.unit * 0.5}px`, }, - wordWrap: { - whiteSpace: 'pre-wrap', + wordWrapOn: { + overflowWrap: 'anywhere', + }, + wordWrapOff: { + whiteSpace: 'nowrap', }, }); @@ -119,8 +122,8 @@ export const ProcessLogCodeSnippet = withStyles(styles)(connect(mapStateToProps) } }}> {lines.map((line: string, index: number) => - + {renderLinks(fontSize, auth, dispatch)(line)} )}