Fixing bug where zim articles were not aligned in modals.

This commit is contained in:
Roland 2026-06-09 19:44:35 -06:00
parent 9a5d1f1630
commit 898da37d47
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
2 changed files with 9 additions and 0 deletions

View file

@ -160,6 +160,13 @@ input:checked + .slider:before {
justify-content: center;
}
/* Fresnel (Media) wraps iframes in a div which would otherwise shrink to the
default iframe size; make it fill the preview so the iframe's 100% works. */
.preview-fit .fresnel-container {
width: 100%;
height: 100%;
}
td.file-path {
cursor: pointer;
}

View file

@ -194,6 +194,8 @@ const ZimSearchEntry = ({zimId, onTag, onUntag, entry}) => {
<Modal.Content>
<div className='preview-fit'>
<ZimViewer src={url} style={{
// Override IframeViewer's `fixed` so the iframe stays inside the Modal.
position: 'static',
height: '100%', width: '100%', border: 'none',
// Use white to avoid iframe displaying with dark-theme.
backgroundColor: '#ffffff',