Fixed broken timeline layout

Summary: Changelog: Fixed broken layout of timeline in QPL plugin

Reviewed By: passy

Differential Revision: D21383013

fbshipit-source-id: 95fbe2681ff27dff827c742f11192c1d07ad021c
This commit is contained in:
Michel Weststrate
2020-05-05 04:04:55 -07:00
committed by Facebook GitHub Bot
parent 877e0816b8
commit 655d856d1c
2 changed files with 3 additions and 2 deletions

View File

@@ -51,8 +51,8 @@ const Layout: React.FC<
children: [React.ReactNode, React.ReactNode]; children: [React.ReactNode, React.ReactNode];
} & Props } & Props
> = ({children, ...props}) => { > = ({children, ...props}) => {
if (children.length > 2) { if (children.length !== 2) {
throw new Error('VerticalContainer expects exactly 2 children'); throw new Error('Layout expects exactly 2 children');
} }
const top = children[0]; const top = children[0];
const main = children[1]; const main = children[1];

View File

@@ -151,6 +151,7 @@ type ManagedTableState = {
const Container = styled(FlexColumn)<{canOverflow?: boolean}>((props) => ({ const Container = styled(FlexColumn)<{canOverflow?: boolean}>((props) => ({
overflow: props.canOverflow ? 'scroll' : 'visible', overflow: props.canOverflow ? 'scroll' : 'visible',
flexGrow: 1, flexGrow: 1,
height: '100%',
})); }));
Container.displayName = 'ManagedTable:Container'; Container.displayName = 'ManagedTable:Container';