1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00
This commit is contained in:
diced 2025-02-17 11:05:25 -08:00
parent 56801d8770
commit 4effcc2538
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

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