From c3f20f99c24187f0122a7e65f8845764cf9da1f6 Mon Sep 17 00:00:00 2001 From: Shni Date: Wed, 15 Oct 2025 03:21:52 -0500 Subject: [PATCH] =?UTF-8?q?feat:=20A=C3=B1adir=20bot=C3=B3n=20flotante=20p?= =?UTF-8?q?ara=20seleccionar=20servidor=20en=20dispositivos=20t=C3=A1ctile?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/views/pages/dashboard.ejs | 2 ++ src/server/views/partials/dashboard_nav.ejs | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/server/views/pages/dashboard.ejs b/src/server/views/pages/dashboard.ejs index 820d97c..4c486b1 100644 --- a/src/server/views/pages/dashboard.ejs +++ b/src/server/views/pages/dashboard.ejs @@ -16,6 +16,8 @@
+ +
diff --git a/src/server/views/partials/dashboard_nav.ejs b/src/server/views/partials/dashboard_nav.ejs index 95fe940..b528c95 100644 --- a/src/server/views/partials/dashboard_nav.ejs +++ b/src/server/views/partials/dashboard_nav.ejs @@ -165,6 +165,15 @@ mobileGuildModal.classList.remove('hidden'); }); } + // floating touch CTA logic + const floatBtn = document.getElementById('floatingTouchGuildBtn'); + try { + const isTouch = (navigator.maxTouchPoints && navigator.maxTouchPoints > 0) || ('ontouchstart' in window); + if (floatBtn && isTouch) { + floatBtn.classList.remove('hidden'); + floatBtn.addEventListener('click', (e) => { e.preventDefault(); mobileGuildModal?.classList.remove('hidden'); }); + } + } catch(e){} });