Reworking file preview buttons to be consistent across screens.

This commit is contained in:
Roland 2026-04-15 13:18:45 -06:00
parent 29133b1e56
commit 575a1b2a80
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 89 additions and 56 deletions

View file

@ -191,9 +191,9 @@ const ZimSearchEntry = ({zimId, onTag, onUntag, entry}) => {
open={open}
onClose={() => setOpen(false)}>
<Modal.Content>
<div className='full-height'>
<div className='preview-fit'>
<ZimViewer src={url} style={{
height: '100%', width: '100%', border: 'none', position: 'absolute', top: 0,
height: '100%', width: '100%', border: 'none',
// Use white to avoid iframe displaying with dark-theme.
backgroundColor: '#ffffff',
}}/>