diff --git a/desktop/app/src/ui/components/Layout.tsx b/desktop/app/src/ui/components/Layout.tsx index 7fa40f582..a0e11b75b 100644 --- a/desktop/app/src/ui/components/Layout.tsx +++ b/desktop/app/src/ui/components/Layout.tsx @@ -51,8 +51,8 @@ const Layout: React.FC< children: [React.ReactNode, React.ReactNode]; } & Props > = ({children, ...props}) => { - if (children.length > 2) { - throw new Error('VerticalContainer expects exactly 2 children'); + if (children.length !== 2) { + throw new Error('Layout expects exactly 2 children'); } const top = children[0]; const main = children[1]; diff --git a/desktop/app/src/ui/components/table/ManagedTable.tsx b/desktop/app/src/ui/components/table/ManagedTable.tsx index 8914c3c65..3a678745d 100644 --- a/desktop/app/src/ui/components/table/ManagedTable.tsx +++ b/desktop/app/src/ui/components/table/ManagedTable.tsx @@ -151,6 +151,7 @@ type ManagedTableState = { const Container = styled(FlexColumn)<{canOverflow?: boolean}>((props) => ({ overflow: props.canOverflow ? 'scroll' : 'visible', flexGrow: 1, + height: '100%', })); Container.displayName = 'ManagedTable:Container';