From f1a276e4c3616eda547c9b340ef85324bee71da4 Mon Sep 17 00:00:00 2001 From: Jeppe Reinhold Date: Wed, 20 Sep 2023 23:04:00 +0200 Subject: [PATCH] fix bottom panel being able to go beyond the viewport --- code/ui/manager/src/components/layout/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ui/manager/src/components/layout/Layout.tsx b/code/ui/manager/src/components/layout/Layout.tsx index 81139ef9dd84..148a7fe1ee86 100644 --- a/code/ui/manager/src/components/layout/Layout.tsx +++ b/code/ui/manager/src/components/layout/Layout.tsx @@ -175,7 +175,7 @@ const LayoutContainer = styled.div( display: 'grid', gap: 0, gridTemplateColumns: `minmax(0, ${navSize}px) minmax(${MINIMUM_CONTENT_WIDTH_PX}px, 1fr) minmax(0, ${rightPanelWidth}px)`, - gridTemplateRows: `1fr ${bottomPanelHeight}px`, + gridTemplateRows: `1fr minmax(0, ${bottomPanelHeight}px)`, gridTemplateAreas: (() => { if (viewMode === 'docs') { // remove panel in docs viewMode