Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Fix desktop app overscrolling inappropriately (#6350)

James Bruntonc059e1342371
diff --git a/frontend/src/core/components/shared/AppConfigModal.css b/frontend/src/core/components/shared/AppConfigModal.css
index 07cc84ae64..54129663a5 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 765d099416..3e031f600e 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<AppConfigModalProps> = ({
overlayProps={{ opacity: 0.35, blur: 2 }}
padding={0}
fullScreen={isMobile}
+ styles={{ content: { overflowY: "hidden", overscrollBehavior: "none" } }}
>
<div className="modal-container">
{/* Left navigation */}
diff --git a/frontend/src/core/styles/index.css b/frontend/src/core/styles/index.css
index 3f2c6edc10..9298fd4147 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 {