Update viewers on window resize (#52)
* Update three on window resize Fixes #43 * Clean up
This commit is contained in:
@ -37,12 +37,13 @@ export function CadDiff({ before, after }: FileDiff): React.ReactElement {
|
|||||||
dashEdge: theme?.colors.success.subtle,
|
dashEdge: theme?.colors.success.subtle,
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<Box display="flex" height={300}>
|
<Box display="flex" height={300} overflow="hidden" minWidth={0}>
|
||||||
<Box flexGrow={1} backgroundColor="danger.subtle">
|
<Box flexGrow={1} minWidth={0} backgroundColor="danger.subtle">
|
||||||
{before && <ViewerSTL file={before} colors={beforeColors} />}
|
{before && <ViewerSTL file={before} colors={beforeColors} />}
|
||||||
</Box>
|
</Box>
|
||||||
<Box
|
<Box
|
||||||
flexGrow={1}
|
flexGrow={1}
|
||||||
|
minWidth={0}
|
||||||
backgroundColor="success.subtle"
|
backgroundColor="success.subtle"
|
||||||
borderLeftWidth={1}
|
borderLeftWidth={1}
|
||||||
borderLeftColor="border.default"
|
borderLeftColor="border.default"
|
||||||
|
Reference in New Issue
Block a user