From bc0cc02074e7bd93d0ca5f2a9f6d6625aa04a955 Mon Sep 17 00:00:00 2001 From: Chris Beer <chris@cbeer.info> Date: Tue, 19 Dec 2023 17:03:22 -0800 Subject: [PATCH] Pull WorkspaceElastic styles up --- src/components/WorkspaceElastic.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/WorkspaceElastic.js b/src/components/WorkspaceElastic.js index e3972e3dc..f871ab998 100644 --- a/src/components/WorkspaceElastic.js +++ b/src/components/WorkspaceElastic.js @@ -6,6 +6,12 @@ import ResizeObserver from 'react-resize-observer'; import WorkspaceElasticWindow from '../containers/WorkspaceElasticWindow'; import ns from '../config/css-ns'; +const Root = styled('div', { name: 'WorkspaceElastic', slot: 'root' })({ + height: '100%', + position: 'relative', + width: '100%', +}); + const StyledRnd = styled(Rnd)({ boxSizing: 'border-box', margin: 0, @@ -39,7 +45,7 @@ class WorkspaceElastic extends Component { const offsetY = workspace.height / 2; return ( - <div style={{ height: '100%', position: 'relative', width: '100%' }}> + <Root> <ResizeObserver onReflow={() => {}} onResize={(rect) => { setWorkspaceViewportDimensions(rect); }} @@ -79,7 +85,7 @@ class WorkspaceElastic extends Component { )) } </StyledRnd> - </div> + </Root> ); } } -- GitLab