fix: prevent modal from filling full screen on laptops

Changed mobile detection threshold from 768px to 480px to ensure
centered modal behavior on desktop/laptop screens while preserving
full-screen experience on actual mobile devices.
This commit is contained in:
Russell Ballestrini 2025-07-09 10:00:45 -04:00
parent 72c73b9a99
commit de9eeffe70

View file

@ -183,8 +183,8 @@ async function openUncloseaiEmbeddedModalNew() {
modal.id = "uncloseai-embedded-modal";
modal.setAttribute("data-theme", theme);
// Mobile-first: full screen on mobile, centered on desktop
const isMobile = window.innerWidth <= 768;
// Mobile-first: full screen on mobile, centered on desktop
const isMobile = window.innerWidth <= 480;
modal.style.cssText = `
position: fixed;