X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/5cc899fc13465c57f16adf69a593a4354e6e0eb3..4b6229be6902538496c8afd2fac0fef1155193ca:/src/components/subprocess-filter/subprocess-filter.tsx?ds=sidebyside diff --git a/src/components/subprocess-filter/subprocess-filter.tsx b/src/components/subprocess-filter/subprocess-filter.tsx index f1366858..36be50d9 100644 --- a/src/components/subprocess-filter/subprocess-filter.tsx +++ b/src/components/subprocess-filter/subprocess-filter.tsx @@ -5,17 +5,15 @@ import * as React from 'react'; import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles'; import { ArvadosTheme } from '~/common/custom-theme'; -import { Grid, Typography, Switch } from '@material-ui/core'; +import { Typography, Switch } from '@material-ui/core'; -type CssRules = 'grid' | 'label' | 'value' | 'switch'; +type CssRules = 'container' | 'label' | 'value'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ - grid: { + container: { display: 'flex', - height: '20px', - paddingTop: '0px!important', - paddingBottom: '0px!important', - marginBottom: theme.spacing.unit + alignItems: 'center', + height: '20px' }, label: { width: '86px', @@ -25,12 +23,6 @@ const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ value: { width: '24px', paddingLeft: theme.spacing.unit, - }, - switch: { - height: '20px', - '& span:first-child': { - height: '18px' - } } }); @@ -46,14 +38,14 @@ type SubprocessFilterProps = SubprocessFilterDataProps & WithStyles; export const SubprocessFilter = withStyles(styles)( ({ classes, label, value, key, checked, onToggle }: SubprocessFilterProps) => - +
{label}: {value} - {onToggle && } - +
); \ No newline at end of file