Skip to content
Snippets Groups Projects
Commit 0b76ed3a authored by Marjolaine Bodin's avatar Marjolaine Bodin
Browse files

Merge branch '838-fix_h5_height' into 'main'

Resolve "H5 viewer height"

Closes #838

See merge request !735
parents e1bedfaa 7de59404
No related branches found
No related tags found
1 merge request!735Resolve "H5 viewer height"
Pipeline #228957 waiting for manual action
......@@ -20,6 +20,7 @@ export function H5Viewer({ datafile }: { datafile: Datafile }) {
className="h-100 w-100"
src={`${url}&wide`}
allowFullScreen
style={{ minHeight: 400 }}
/>
<Button target="_blank" href={url}>
<FontAwesomeIcon icon={faShareAlt} style={{ marginRight: 5 }} />
......
......@@ -9,12 +9,17 @@ export function ImageViewer({ datafile }: { datafile: Datafile }) {
const url = useEndpointURL(DATA_DOWNLOAD_ENDPOINT);
return (
<ZoomableImage
src={url({
datafileIds: datafile.id.toString(),
})}
alt={datafile.name}
zoomable
/>
<div
className="h-100 overflow-auto"
style={{ overflow: 'visible', maxHeight: 400 }}
>
<ZoomableImage
src={url({
datafileIds: datafile.id.toString(),
})}
alt={datafile.name}
zoomable
/>
</div>
);
}
......@@ -68,6 +68,7 @@ function LoadAndDisplay({ datafile }: { datafile: Datafile }) {
<pre
style={{
overflow: 'visible',
maxHeight: 400,
}}
className="monospace"
>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment