diff --git a/src/server/views/partials/dashboard_nav.ejs b/src/server/views/partials/dashboard_nav.ejs index 83c5d21..1689056 100644 --- a/src/server/views/partials/dashboard_nav.ejs +++ b/src/server/views/partials/dashboard_nav.ejs @@ -1,14 +1,16 @@
+ +
- - - - - + logo
@@ -170,6 +172,17 @@ const mobileGuildClose = document.getElementById('mobileGuildClose'); const mobileUserSheet = document.getElementById('mobileUserSheet'); const mobileUserClose = document.getElementById('mobileUserClose'); + // ensure modals live under document.body so fixed positioning is relative to viewport + try { + if (mobileGuildModal && mobileGuildModal.parentElement !== document.body) { + document.body.appendChild(mobileGuildModal); + } + if (mobileUserSheet && mobileUserSheet.parentElement !== document.body) { + document.body.appendChild(mobileUserSheet); + } + if (mobileGuildModal) mobileGuildModal.style.position = 'fixed'; + if (mobileUserSheet) mobileUserSheet.style.position = 'fixed'; + } catch(e){} function isMobile(){ return window.innerWidth < 768; } // override mini guild click on mobile const miniBtn = document.getElementById('miniGuildBtn');