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:
committed by
Facebook GitHub Bot
parent
877e0816b8
commit
655d856d1c
@@ -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];
|
||||||
|
|||||||
@@ -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';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user