fix(components): fixed overflowed image

This commit is contained in:
AlphaNecron 2021-09-20 20:13:58 +07:00
parent a0451df464
commit 935e550dfa
1 changed files with 1 additions and 2 deletions

View File

@ -47,13 +47,12 @@ export default function Embed({ file, title, color, username, content = '' }) {
bg={bg}
fg={fg}
p={1}
maxWidth='90vw' maxHeight='85vh'
borderRadius={5}
textAlign='center'
shadow={shadow}
>
<Heading mb={1} mx={2} fontSize='md'>{file.origFileName}</Heading>
<FileViewer ext={ext} content={content} src={src} type={type}/>
<FileViewer ext={ext} content={content} src={src} type={type} style={{ maxWidth: '90vw', maxHeight: '80vh' }}/>
<Button mt={1} leftIcon={<DownloadCloud size={16}/>} colorScheme='purple' size='sm' onClick={handleDownload}>Download</Button>
</Box>
</Center>