X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3e1a77c445b8f9e029fa52a53d8916e6ce33c14b..a855a03082f2d521ed64ef1405ed186655659f26:/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 42df2d92d7..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<CssRules> = (theme: ArvadosTheme) => ({
     backLink: {
-        fontSize: '1rem',
+        fontSize: '14px',
         fontWeight: 600,
         display: 'flex',
         alignItems: 'center',
@@ -43,8 +43,12 @@ const styles: StyleRulesCallback<CssRules> = (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<any>, 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<CssRules>) =>
+    ({ classes, process, selectedFilter, filters, onChange, lines, onContextMenu, navigateToLogCollection }: ProcessLogMainCardProps & WithStyles<CssRules>) =>
         <Grid item xs={12}>
             <Link to={`/processes/${process.containerRequest.uuid}`} className={classes.backLink}>
-                <BackIcon className={classes.backIcon} /> Back
+                <BackIcon className={classes.backIcon} /> BACK
             </Link>
             <Card className={classes.card}>
                 <CardHeader
@@ -80,7 +85,7 @@ export const ProcessLogMainCard = withStyles(styles)(
                         </Tooltip>}
                     title={
                         <Tooltip title={process.containerRequest.name} placement="bottom-start">
-                            <Typography noWrap variant="title" className={classes.title}>
+                            <Typography noWrap variant='h6' className={classes.title}>
                                 {process.containerRequest.name}
                             </Typography>
                         </Tooltip>}
@@ -96,9 +101,9 @@ export const ProcessLogMainCard = withStyles(styles)(
                                     <ProcessLogForm selectedFilter={selectedFilter} filters={filters} onChange={onChange} />
                                 </Grid>
                                 <Grid item xs={6} className={classes.link}>
-                                    <Typography component='div'>
+                                    <span onClick={() => navigateToLogCollection(process.containerRequest.logUuid!)}>
                                         Go to Log collection
-                                </Typography>
+                                    </span>
                                 </Grid>
                             </Grid>
                             <Grid item xs>
