refactor: fix file preview modal ios padding
This commit is contained in:
@@ -17,7 +17,6 @@ import StyledTooltip from '../StyledTooltip/StyledTooltip'
|
|||||||
import DecoratedInput from '../Input/DecoratedInput'
|
import DecoratedInput from '../Input/DecoratedInput'
|
||||||
import { mergeRefs } from '@/Hooks/mergeRefs'
|
import { mergeRefs } from '@/Hooks/mergeRefs'
|
||||||
import { classNames } from '@standardnotes/snjs'
|
import { classNames } from '@standardnotes/snjs'
|
||||||
import { isIOS } from '@/Utils'
|
|
||||||
import ModalOverlay from '../Modal/ModalOverlay'
|
import ModalOverlay from '../Modal/ModalOverlay'
|
||||||
import Modal from '../Modal/Modal'
|
import Modal from '../Modal/Modal'
|
||||||
import { MutuallyExclusiveMediaQueryBreakpoints, useMediaQuery } from '@/Hooks/useMediaQuery'
|
import { MutuallyExclusiveMediaQueryBreakpoints, useMediaQuery } from '@/Hooks/useMediaQuery'
|
||||||
@@ -123,7 +122,6 @@ const FilePreviewModal = observer(({ application, viewControllerManager }: Props
|
|||||||
className={{
|
className={{
|
||||||
content: classNames(
|
content: classNames(
|
||||||
'm-0 flex h-full w-full flex-col rounded bg-[color:var(--modal-background-color)] p-0 shadow-main md:!h-full md:max-h-[90%] md:!w-full md:max-w-[90%]',
|
'm-0 flex h-full w-full flex-col rounded bg-[color:var(--modal-background-color)] p-0 shadow-main md:!h-full md:max-h-[90%] md:!w-full md:max-w-[90%]',
|
||||||
isIOS() && 'pt-safe-top',
|
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
actions={[
|
actions={[
|
||||||
|
|||||||
Reference in New Issue
Block a user