From: Stephen Smith Date: Fri, 3 Jun 2022 02:50:04 +0000 (-0400) Subject: 18984: Fix misalignment in groups data table X-Git-Tag: 2.5.0~53^2~1 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/ede9027245c18871358536ebf7d5e39a9291926f 18984: Fix misalignment in groups data table Arvados-DCO-1.1-Signed-off-by: Stephen Smith --- diff --git a/src/views/group-details-panel/group-details-panel.tsx b/src/views/group-details-panel/group-details-panel.tsx index 9ebf4626..311bc86e 100644 --- a/src/views/group-details-panel/group-details-panel.tsx +++ b/src/views/group-details-panel/group-details-panel.tsx @@ -20,11 +20,15 @@ import { getUserUuid } from 'common/getuser'; import { GroupResource, isBuiltinGroup } from 'models/group'; import { ArvadosTheme } from 'common/custom-theme'; -type CssRules = "root"; +type CssRules = "root" | "content"; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { width: '100%', + }, + content: { + // reserve space for the tab bar + height: `calc(100% - ${theme.spacing.unit * 7}px)`, } }); @@ -168,50 +172,52 @@ export const GroupDetailsPanel = withStyles(styles)(connect( - {value === 0 && - - - - } - paperProps={{ - elevation: 0, - }} /> - } - {value === 1 && - - } +
+ {value === 0 && + + + + } + paperProps={{ + elevation: 0, + }} /> + } + {value === 1 && + + } +
); }