pl-fe: am i even fixing this

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-01-23 00:17:15 +01:00
parent eff1822855
commit 86d21b1ea1
2 changed files with 10 additions and 3 deletions

View File

@ -289,9 +289,10 @@ const MediaModal: React.FC<MediaModalProps & BaseModalProps> = (props) => {
role='presentation'
>
<Stack
{...bind()}
onClick={handleClickOutside}
className={
clsx('⁂-media-modal__content fixed inset-0 h-full grow transition-all', {
clsx('⁂-media-modal__content fixed inset-0 h-full grow touch-pan-y transition-all', {
'xl:pr-96': !isFullScreen,
'xl:pr-0': isFullScreen,
})
@ -349,7 +350,6 @@ const MediaModal: React.FC<MediaModalProps & BaseModalProps> = (props) => {
{/* Height based on height of top/bottom bars */}
<div
{...bind()}
className='relative h-[calc(100vh-120px)] w-full grow'
>
{hasMultipleImages && (

View File

@ -7,6 +7,13 @@ html {
--font-mono: 'Roboto Mono', ui-monospace, monospace;
}
html:has(body.with-modals),
body.with-modals {
touch-action: none;
overscroll-behavior: none;
scrollbar-gutter: stable;
}
body {
@apply bg-white text-base antialiased black:bg-black dark:bg-gray-800;
height: 100%;
@ -21,7 +28,7 @@ body {
}
&.with-modals {
@apply overflow-hidden;
overflow: hidden;
}
}