X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/78fd0936352c6f50f06bd0c6f9973bccc1ac0d51..2a60ee742601aec7a0bc6ee832da39d834d82eb7:/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 626568d1..6b2521c0 100644 --- a/src/views/process-log-panel/process-log-main-card.tsx +++ b/src/views/process-log-panel/process-log-main-card.tsx @@ -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,7 +69,7 @@ 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 @@ -73,14 +78,14 @@ export const ProcessLogMainCard = withStyles(styles)( } 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 - +