X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ab54fbc8f8934aab2b4a824bb2b71e354503c9ec..1703f15adf9e3875ff0c78ce78117a87b70ca05c:/src/components/subprocess-filter/subprocess-filter.tsx diff --git a/src/components/subprocess-filter/subprocess-filter.tsx b/src/components/subprocess-filter/subprocess-filter.tsx index 58c33ee5..36be50d9 100644 --- a/src/components/subprocess-filter/subprocess-filter.tsx +++ b/src/components/subprocess-filter/subprocess-filter.tsx @@ -5,27 +5,24 @@ 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: { - display: 'flex' + container: { + display: 'flex', + alignItems: 'center', + height: '20px' }, label: { width: '86px', color: theme.palette.grey["500"], - textAlign: 'right' + textAlign: 'right', }, value: { width: '24px', - paddingLeft: theme.spacing.unit - }, - switch: { - '& span:first-child': { - height: '18px' - } + paddingLeft: theme.spacing.unit, } }); @@ -41,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