From c059e134237178e31c03bb3e05892632436c0ec4 Mon Sep 17 00:00:00 2001 From: James Brunton Date: Mon, 11 May 2026 15:31:00 +0100 Subject: [PATCH] Fix desktop app overscrolling inappropriately (#6350) # Description of Changes Fix #6348 --- frontend/src/core/components/shared/AppConfigModal.css | 3 +-- frontend/src/core/components/shared/AppConfigModal.tsx | 1 + frontend/src/core/styles/index.css | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/core/components/shared/AppConfigModal.css b/frontend/src/core/components/shared/AppConfigModal.css index 07cc84ae6..54129663a 100644 --- a/frontend/src/core/components/shared/AppConfigModal.css +++ b/frontend/src/core/components/shared/AppConfigModal.css @@ -3,11 +3,11 @@ display: flex; gap: 0; height: 45rem; /* 720px */ + max-height: 90dvh; /* matches Mantine's default modal max-height so the outer wrapper never has to scroll */ } .modal-nav { width: 15rem; /* 240px */ - height: 45rem; /* 720px */ border-top-left-radius: 0.75rem; /* 12px */ border-bottom-left-radius: 0.75rem; /* 12px */ overflow: hidden; @@ -108,7 +108,6 @@ .modal-content { flex: 1; - height: 45rem; /* 720px */ display: flex; flex-direction: column; overflow: hidden; diff --git a/frontend/src/core/components/shared/AppConfigModal.tsx b/frontend/src/core/components/shared/AppConfigModal.tsx index 765d09941..3e031f600 100644 --- a/frontend/src/core/components/shared/AppConfigModal.tsx +++ b/frontend/src/core/components/shared/AppConfigModal.tsx @@ -164,6 +164,7 @@ const AppConfigModalInner: React.FC = ({ overlayProps={{ opacity: 0.35, blur: 2 }} padding={0} fullScreen={isMobile} + styles={{ content: { overflowY: "hidden", overscrollBehavior: "none" } }} >
{/* Left navigation */} diff --git a/frontend/src/core/styles/index.css b/frontend/src/core/styles/index.css index 3f2c6edc1..9298fd414 100644 --- a/frontend/src/core/styles/index.css +++ b/frontend/src/core/styles/index.css @@ -3,7 +3,8 @@ body { margin: 0; padding: 0; height: 100%; - overflow-x: hidden; + overflow: hidden; + overscroll-behavior: none; } body {