1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-21 18:02:32 +01:00

minor fixes to image viewer modal

This commit is contained in:
Puyodead1 2024-06-22 05:20:53 +02:00
parent f371a972e5
commit 533faf634b
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
2 changed files with 9 additions and 2 deletions

View File

@ -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

View File

@ -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"});
`}