From 37a1d67e8325906b9cfbb6bf3df608e72bd33b67 Mon Sep 17 00:00:00 2001 From: Pawel Kowalczyk Date: Tue, 14 May 2019 11:14:34 +0200 Subject: [PATCH] back-button Feature #15020 Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk --- .../collection-content-address-panel.tsx | 15 +++++++-------- .../process-log-panel/process-log-main-card.tsx | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/views/collection-content-address-panel/collection-content-address-panel.tsx b/src/views/collection-content-address-panel/collection-content-address-panel.tsx index dfe1b5bf..425588f1 100644 --- a/src/views/collection-content-address-panel/collection-content-address-panel.tsx +++ b/src/views/collection-content-address-panel/collection-content-address-panel.tsx @@ -3,10 +3,7 @@ // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; -import { Link } from 'react-router-dom'; -import { - StyleRulesCallback, WithStyles, withStyles, Grid -} from '@material-ui/core'; +import { StyleRulesCallback, WithStyles, withStyles, Grid, Button } from '@material-ui/core'; import { CollectionIcon } from '~/components/icon/icon'; import { ArvadosTheme } from '~/common/custom-theme'; import { BackIcon } from '~/components/icon/icon'; @@ -29,12 +26,12 @@ type CssRules = 'backLink' | 'backIcon' | 'card' | 'title' | 'iconHeader' | 'lin const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ backLink: { - fontSize: '1rem', + fontSize: '14px', fontWeight: 600, display: 'flex', alignItems: 'center', - textDecoration: 'none', padding: theme.spacing.unit, + marginBottom: theme.spacing.unit, color: theme.palette.grey["700"], }, backIcon: { @@ -132,10 +129,12 @@ export const CollectionsContentAddressPanel = withStyles(styles)( class extends React.Component> { render() { return - {/* + = (theme: ArvadosTheme) => ({ backLink: { - fontSize: '1rem', + fontSize: '14px', fontWeight: 600, display: 'flex', alignItems: 'center', @@ -72,7 +72,7 @@ export const ProcessLogMainCard = withStyles(styles)( ({ classes, process, selectedFilter, filters, onChange, lines, onContextMenu, navigateToLogCollection }: ProcessLogMainCardProps & WithStyles) => - Back + BACK