diff --git a/activity-feed.js b/activity-feed.js index c3e9be3..5ba275a 100644 --- a/activity-feed.js +++ b/activity-feed.js @@ -272,8 +272,10 @@ function createTriggerButton() { dragging = true; } if (dragging) { - const x = Math.max(0, Math.min(window.innerWidth - 40, e.clientX - offsetX)); - const y = Math.max(0, Math.min(window.innerHeight - 40, e.clientY - offsetY)); + const viewportWidth = (window.visualViewport ? window.visualViewport.width : window.innerWidth); + const x = Math.max(0, Math.min(viewportWidth - 40, e.clientX - offsetX)); + const viewportHeight = (window.visualViewport ? window.visualViewport.height : window.innerHeight); + const y = Math.max(0, Math.min(viewportHeight - 40, e.clientY - offsetY)); triggerEl.style.left = `${x}px`; triggerEl.style.top = `${y}px`; triggerEl.style.bottom = 'auto'; diff --git a/style.css b/style.css index 05ba272..3236cec 100644 --- a/style.css +++ b/style.css @@ -817,6 +817,7 @@ height: 44px; font-size: 17px; bottom: 120px; + top: 450px; } /* Mobile: full-width panel */