X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/7d1fded42f510a082f4274531de2b7f591919bdb..b7f96fb678f9b48c3762e0c1ab29157b11bda869:/src/views/process-log-panel/process-log-main-card.tsx diff --git a/src/views/process-log-panel/process-log-main-card.tsx b/src/views/process-log-panel/process-log-main-card.tsx index 9b75d112..ec6a912a 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -21,7 +21,7 @@ type CssRules = 'backLink' | 'backIcon' | 'card' | 'title' | 'iconHeader' | 'lin const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ backLink: { - fontSize: '1rem', + fontSize: '14px', fontWeight: 600, display: 'flex', alignItems: 'center', @@ -43,8 +43,12 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ color: theme.customs.colors.green700 }, link: { - alignSelf: 'flex-end', - textAlign: 'right' + fontSize: '0.875rem', + color: theme.palette.primary.main, + textAlign: 'right', + '&:hover': { + cursor: 'pointer' + } } }); @@ -55,6 +59,7 @@ interface ProcessLogMainCardDataProps { export interface ProcessLogMainCardActionProps { onContextMenu: (event: React.MouseEvent, process: Process) => void; + navigateToLogCollection: (uuid: string) => void; } export type ProcessLogMainCardProps = ProcessLogMainCardDataProps @@ -64,10 +69,10 @@ export type ProcessLogMainCardProps = ProcessLogMainCardDataProps & ProcessLogFormActionProps; export const ProcessLogMainCard = withStyles(styles)( - ({ classes, process, selectedFilter, filters, onChange, lines, onContextMenu }: ProcessLogMainCardProps & WithStyles) => + ({ classes, process, selectedFilter, filters, onChange, lines, onContextMenu, navigateToLogCollection }: ProcessLogMainCardProps & WithStyles) => - Back + BACK - + navigateToLogCollection(process.containerRequest.logUuid!)}> Go to Log collection - +