From dd05824d7a63ab85ae925d0d0965be425550b836 Mon Sep 17 00:00:00 2001 From: Shni Date: Wed, 15 Oct 2025 02:41:07 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20Agregar=20bot=C3=B3n=20de=20men=C3=BA?= =?UTF-8?q?=20m=C3=B3vil=20y=20ajustar=20la=20posici=C3=B3n=20de=20los=20m?= =?UTF-8?q?odales=20en=20el=20panel=20de=20control?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/views/partials/dashboard_nav.ejs | 23 ++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) 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');