Skip to content

Commit

Permalink
Merge pull request #24370 from storybookjs/fix-layout-height
Browse files Browse the repository at this point in the history
UI: Fix layout height
  • Loading branch information
ndelangen authored Oct 9, 2023
2 parents 4626d02 + 1682f32 commit 37ada8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ui/manager/src/components/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const LayoutContainer = styled.div<LayoutState>(
({ navSize, rightPanelWidth, bottomPanelHeight, viewMode, panelPosition }) => {
return {
width: '100%',
height: '100svh', // We are using svh to use the minimum space on mobile
height: ['100vh', '100dvh'], // This array is a special Emotion syntax to set a fallback if 100dvh is not supported
overflow: 'hidden',
display: 'flex',
flexDirection: 'column',
Expand Down

0 comments on commit 37ada8b

Please sign in to comment.