X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/9d13b7b84e145646fe3d5e61e26a2ceead76d039..37a1d67e8325906b9cfbb6bf3df608e72bd33b67:/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 - +