Skip to content

Commit 1e74c2e

Browse files
CopilotJackass4life
andcommitted
fix: remove nested scroll in popup by limiting scroll to device list only
Remove max-height and overflow-y:auto from .leaflet-popup-content to eliminate the outer scrollbar. Add max-height and overflow-y:auto to .coloc-popup to preserve co-located popup scroll + sticky header behavior. Fixes #26 Co-authored-by: Jackass4life <94110786+Jackass4life@users.noreply.github.com> Agent-Logs-Url: https://github.com/Jackass4life/Nautobot-maps/sessions/27b334cc-ad36-405d-9d1c-8530169cdf30
1 parent e1e102b commit 1e74c2e

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

static/css/map.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,7 @@ html, body {
372372
}
373373

374374
.leaflet-popup-content {
375-
max-height: min(500px, 70vh);
376-
overflow-y: auto;
375+
overflow-y: visible;
377376
}
378377

379378
.leaflet-popup-tip {
@@ -575,6 +574,11 @@ html, body {
575574
box-shadow: 0 0 4px rgba(0,0,0,.3);
576575
}
577576

577+
.coloc-popup {
578+
max-height: min(500px, 70vh);
579+
overflow-y: auto;
580+
}
581+
578582
.coloc-header {
579583
font-size: 0.78rem;
580584
font-weight: 600;

0 commit comments

Comments
 (0)