X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/151c8c646b7fd78fc9ca2b8174eae11bce67873f..dd3d65aa7dea7269352eabe19096cb3dc44eb6c5:/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 626568d179..ec6a912a71 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,23 +69,23 @@ 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 } action={ - onContextMenu(event, process)} aria-label="More options"> - + + onContextMenu(event, process)} aria-label="More options"> - - } + + } title={ - + {process.containerRequest.name} } @@ -96,9 +101,9 @@ export const ProcessLogMainCard = withStyles(styles)( - + navigateToLogCollection(process.containerRequest.logUuid!)}> Go to Log collection - +