diff --git a/frontend/components/media/MediaMap.vue b/frontend/components/media/MediaMap.vue index e82c14abf..233796841 100644 --- a/frontend/components/media/MediaMap.vue +++ b/frontend/components/media/MediaMap.vue @@ -29,6 +29,13 @@ const isTouchDevice = "ontouchstart" in window || navigator.maxTouchPoints > 0; +const applyMaxWindowHeight = () => { + document.documentElement.style.setProperty( + "--app-height", + `${window.innerHeight}px` + ); +}; + function isWebglSupported() { if (window.WebGLRenderingContext) { const canvas = document.createElement("canvas"); @@ -242,6 +249,8 @@ onMounted(() => { }) ); + map.on("fullscreenchange", applyMaxWindowHeight); + const popup = new maplibregl.Popup({ offset: 25, }).setHTML( @@ -433,3 +442,18 @@ onMounted(() => { }); }); + +