Skip to content

Fix nested scrollbars in location popup - #37

Merged
Jackass4life merged 2 commits into
mainfrom
copilot/fix-scroll-inside-scroll-window
Mar 24, 2026
Merged

Fix nested scrollbars in location popup#37
Jackass4life merged 2 commits into
mainfrom
copilot/fix-scroll-inside-scroll-window

Conversation

Copilot AI commented Mar 24, 2026

Copy link
Copy Markdown
Contributor

.leaflet-popup-content and .device-list-scroll both had overflow-y: auto with max-height, producing two simultaneous scrollbars in the popup.

  • Remove max-height and overflow-y: auto from .leaflet-popup-content so it no longer creates an outer scrollbar
  • Add .coloc-popup { max-height: min(500px, 70vh); overflow-y: auto } to retain scroll + sticky tab headers for co-located site popups
  • .device-list-scroll remains the sole scroll container for device lists in regular popups
Original prompt

This section details on the original issue you should resolve

<issue_title>Issue: There is a scroll insite a scroll window</issue_title>
<issue_description>Issue: There is a scroll insite a scroll window
See Picture for better understanding:

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…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
Copilot AI changed the title [WIP] Fix scroll issue inside scroll window Fix nested scrollbars in location popup Mar 24, 2026
Copilot AI requested a review from Jackass4life March 24, 2026 07:35
@Jackass4life
Jackass4life marked this pull request as ready for review March 24, 2026 07:35
@Jackass4life
Jackass4life merged commit 30589a6 into main Mar 24, 2026
3 checks passed
@Jackass4life
Jackass4life deleted the copilot/fix-scroll-inside-scroll-window branch March 24, 2026 09:01
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.

Issue: There is a scroll insite a scroll window

2 participants