Skip to content

fix: site popup clipped off-screen when location has many devices - #57

Merged
Jackass4life merged 1 commit into
mainfrom
copilot/fix-hidden-site-info
Jul 10, 2026
Merged

fix: site popup clipped off-screen when location has many devices#57
Jackass4life merged 1 commit into
mainfrom
copilot/fix-hidden-site-info

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Clicking a site with a large device count (e.g. 46 devices) caused the popup to overflow the viewport — the site name, status badge, and metadata were hidden above the visible area while only the device list was visible.

Changes

  • keepInView: true added to all bindPopup() calls (single marker, co-located marker, cluster) — Leaflet now auto-pans the map to keep the popup fully on screen after open
  • Cap popup height.leaflet-popup-content gains max-height: min(520px, 75vh) with overflow-y: auto; previously overflow-y: visible explicitly allowed unbounded overflow
  • The existing .device-list-scroll inner scroll cap (320px) is preserved; the outer cap ensures header/metadata rows always remain visible regardless of device count

@Jackass4life
Jackass4life marked this pull request as ready for review July 10, 2026 06:07
@Jackass4life
Jackass4life merged commit abea6d3 into main Jul 10, 2026
7 checks passed
@Jackass4life
Jackass4life deleted the copilot/fix-hidden-site-info branch July 10, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants