pl-fe: am i even fixing this
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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 && (
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user