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:
parent
72c73b9a99
commit
de9eeffe70
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue