From 18393f1e1c23ac70fcf7707eb1597521784b2960 Mon Sep 17 00:00:00 2001 From: anti Date: Thu, 30 Apr 2026 00:32:16 -0400 Subject: [PATCH] fix(ui): bound dashboard height so panels don't overflow viewport MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit .content-viewport is overflow-y: auto so flex:1 on dash-grid grew to content height. Fix: dashboard uses height:100% instead of min-height, and :has(>.dashboard) disables content-viewport scroll only on that route — all other pages keep their normal scroll. --- decnet_web/src/components/Dashboard.css | 2 +- decnet_web/src/components/Layout.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/decnet_web/src/components/Dashboard.css b/decnet_web/src/components/Dashboard.css index 9666b225..ddff5911 100644 --- a/decnet_web/src/components/Dashboard.css +++ b/decnet_web/src/components/Dashboard.css @@ -2,7 +2,7 @@ display: flex; flex-direction: column; gap: 24px; - min-height: 100%; + height: 100%; } /* Page header */ diff --git a/decnet_web/src/components/Layout.css b/decnet_web/src/components/Layout.css index 8b383814..a3146e22 100644 --- a/decnet_web/src/components/Layout.css +++ b/decnet_web/src/components/Layout.css @@ -346,3 +346,8 @@ padding: 32px; overflow-y: auto; } + +/* Dashboard fills the viewport without scrolling — panels scroll internally */ +.content-viewport:has(> .dashboard) { + overflow: hidden; +}