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:
parent
f371a972e5
commit
533faf634b
@ -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
|
||||
|
@ -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"});
|
||||
`}
|
||||
|
Loading…
Reference in New Issue
Block a user