Modifying height of iframes for Map/Zim viewers to show full page of iframe.

This commit is contained in:
Roland 2024-04-16 10:34:05 -06:00
parent ed1ed94beb
commit 62c4afce0b
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
4 changed files with 37 additions and 19 deletions

View file

@ -4,6 +4,7 @@ import {
ErrorMessage,
HelpPopup,
humanFileSize,
IframeViewer,
InfoMessage,
PageContainer,
TabLinks,
@ -281,15 +282,7 @@ class ManageMap extends React.Component {
}
function MapPage() {
return <iframe
title='map'
src={`http://${window.location.hostname}:8084/`}
style={{
position: 'fixed',
height: '100%',
width: '100%',
border: 'none',
}}/>
return <IframeViewer title='map' viewerUrl={`http://${window.location.hostname}:8084/`}/>
}
export function MapRoute() {