diff --git a/app/src/App.js b/app/src/App.js
index cd82db13..12cbc493 100644
--- a/app/src/App.js
+++ b/app/src/App.js
@@ -21,6 +21,7 @@ import {SemanticToastContainer} from "react-semantic-toasts-2";
import {FilePreviewProvider} from "./components/FilePreview";
import {TagsProvider} from "./Tags";
import {ZimRoute} from "./components/Zim";
+import {IframeViewer} from "./components/Common";
function PageNotFound() {
const {t} = useContext(ThemeContext);
diff --git a/app/src/components/Common.js b/app/src/components/Common.js
index ddf6e323..30e3ebb1 100644
--- a/app/src/components/Common.js
+++ b/app/src/components/Common.js
@@ -1676,3 +1676,35 @@ export const monthNames = [
'November',
'December',
];
+
+export function IframeViewer({title, viewerUrl}) {
+ // Bottom of iframe is hidden when height is 100%. These values display the entire iframe.
+ return <>
+
+
+
+
+
+
+ >
+}
\ No newline at end of file
diff --git a/app/src/components/Map.js b/app/src/components/Map.js
index 8d74f740..8a5e323a 100644
--- a/app/src/components/Map.js
+++ b/app/src/components/Map.js
@@ -4,6 +4,7 @@ import {
ErrorMessage,
HelpPopup,
humanFileSize,
+ IframeViewer,
InfoMessage,
PageContainer,
TabLinks,
@@ -281,15 +282,7 @@ class ManageMap extends React.Component {
}
function MapPage() {
- return
+ return
}
export function MapRoute() {
diff --git a/app/src/components/Zim.js b/app/src/components/Zim.js
index 9c20a782..68c46d81 100644
--- a/app/src/components/Zim.js
+++ b/app/src/components/Zim.js
@@ -34,6 +34,7 @@ import {
encodeMediaPath,
ErrorMessage,
humanFileSize,
+ IframeViewer,
InfoMessage,
normalizeEstimate,
PageContainer,
@@ -529,16 +530,7 @@ class ManageZim extends React.Component {
}
function ZimViewer() {
- return
+ return
}
export function ZimRoute() {