Skip to content

Commit

Permalink
minor fixes to image viewer modal
Browse files Browse the repository at this point in the history
  • Loading branch information
Puyodead1 committed Jun 22, 2024
1 parent f371a97 commit 533faf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/components/modals/ImageViewerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ export function ImageViewerModal(props: Props) {
const height = props.height ?? props.attachment.height ?? 0;

return (
<Modal {...props} transparent maxWidth="100vw" maxHeight="100vh" withoutCloseButton withEmptyActionBar>
<Modal
{...props}
transparent
maxWidth="100vw"
maxHeight="100vh"
withoutCloseButton
withEmptyActionBar
padding="0"
>
<Container>
{props.isVideo ? (
<video
Expand Down
1 change: 0 additions & 1 deletion src/components/modals/ModalComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export const ModalWrapper = styled.div<
${(props) =>
!props.fullScreen &&
css`
min-height: 200px;
max-width: min(calc(100vw - 20px), ${props.maxWidth ?? "450px"});
max-height: min(calc(100vh - 20px), ${props.maxHeight ?? "650px"});
`}
Expand Down

0 comments on commit 533faf6

Please sign in to comment.