mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: #698
This commit is contained in:
parent
56801d8770
commit
4effcc2538
1 changed files with 7 additions and 1 deletions
|
@ -194,7 +194,12 @@ export default function DashboardFileType({
|
|||
mah={400}
|
||||
src={dbFile ? `/raw/${file.name}${password ? `?pw=${password}` : ''}` : URL.createObjectURL(file)}
|
||||
alt={file.name}
|
||||
style={{ maxWidth: '90vw', maxHeight: '90vh', cursor: allowZoom ? 'zoom-in' : 'default' }}
|
||||
style={{
|
||||
maxWidth: '90vw',
|
||||
maxHeight: '90vh',
|
||||
cursor: allowZoom ? 'zoom-in' : 'default',
|
||||
width: 'auto',
|
||||
}}
|
||||
onClick={() => setOpen(true)}
|
||||
/>
|
||||
{allowZoom && open && (
|
||||
|
@ -209,6 +214,7 @@ export default function DashboardFileType({
|
|||
maxHeight: '90vh',
|
||||
objectFit: 'contain',
|
||||
cursor: 'zoom-out',
|
||||
width: 'auto',
|
||||
}}
|
||||
/>
|
||||
</FileZoomModal>
|
||||
|
|
Loading…
Add table
Reference in a new issue