mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Fix desktop app overscrolling inappropriately (#6350)
# Description of Changes Fix #6348
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
gap: 0;
|
gap: 0;
|
||||||
height: 45rem; /* 720px */
|
height: 45rem; /* 720px */
|
||||||
|
max-height: 90dvh; /* matches Mantine's default modal max-height so the outer wrapper never has to scroll */
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal-nav {
|
.modal-nav {
|
||||||
width: 15rem; /* 240px */
|
width: 15rem; /* 240px */
|
||||||
height: 45rem; /* 720px */
|
|
||||||
border-top-left-radius: 0.75rem; /* 12px */
|
border-top-left-radius: 0.75rem; /* 12px */
|
||||||
border-bottom-left-radius: 0.75rem; /* 12px */
|
border-bottom-left-radius: 0.75rem; /* 12px */
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@@ -108,7 +108,6 @@
|
|||||||
|
|
||||||
.modal-content {
|
.modal-content {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
height: 45rem; /* 720px */
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@@ -164,6 +164,7 @@ const AppConfigModalInner: React.FC<AppConfigModalProps> = ({
|
|||||||
overlayProps={{ opacity: 0.35, blur: 2 }}
|
overlayProps={{ opacity: 0.35, blur: 2 }}
|
||||||
padding={0}
|
padding={0}
|
||||||
fullScreen={isMobile}
|
fullScreen={isMobile}
|
||||||
|
styles={{ content: { overflowY: "hidden", overscrollBehavior: "none" } }}
|
||||||
>
|
>
|
||||||
<div className="modal-container">
|
<div className="modal-container">
|
||||||
{/* Left navigation */}
|
{/* Left navigation */}
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow-x: hidden;
|
overflow: hidden;
|
||||||
|
overscroll-behavior: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|||||||
Reference in New Issue
Block a user