mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Fixing bug where zim articles were not aligned in modals.
This commit is contained in:
parent
9a5d1f1630
commit
898da37d47
2 changed files with 9 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue