openstreetmap-tools/web/static/style.css
Edward Betts f2989caaec Fix sidebar scroll not reaching last stop
Two issues:
1. Flex items default to min-height:auto, which allows them to grow
   beyond the flex container instead of being constrained and scrolling.
   Add min-height:0 to #sidebar so overflow-y:auto works correctly.
2. WebKit ignores padding-bottom on overflow containers entirely.
   Remove it from #sidebar and increase padding-bottom on #stop-list
   and #route-master-list (children inside the scroll container, where
   padding-bottom is respected) from 1rem to 2rem.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-27 20:57:16 +00:00

74 lines
1.2 KiB
CSS

html, body {
height: 100%;
overflow: hidden;
}
#main-row {
height: calc(100vh - 56px); /* subtract navbar height */
}
#sidebar {
height: 100%;
min-height: 0; /* flex items default to min-height:auto, preventing overflow scrolling */
overflow-y: auto;
padding: 1rem 1rem 0; /* no bottom padding — WebKit ignores it on overflow containers */
}
#map {
height: 100%;
}
.slot-box {
border: 2px solid #dee2e6;
border-radius: 6px;
padding: 0.4rem 0.6rem;
cursor: pointer;
min-height: 2.2rem;
display: flex;
align-items: center;
justify-content: space-between;
transition: border-color 0.15s;
}
.slot-box.active {
border-color: #0d6efd;
background: #f0f5ff;
}
.slot-box .placeholder {
color: #adb5bd;
font-style: italic;
}
.slot-box .pencil {
color: #0d6efd;
font-size: 0.8rem;
}
#stop-list,
#route-master-list {
padding-bottom: 2rem;
}
#stop-list .stop-item {
cursor: pointer;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.9rem;
}
#stop-list .stop-item:hover {
background: #e9ecef;
}
#stop-list .stop-item.is-from {
background: #d1e7dd;
}
#stop-list .stop-item.is-to {
background: #f8d7da;
}
.leaflet-container {
font-family: inherit;
}