From f2989caaec6053c4521e16421cba6d1626ee46ea Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Fri, 27 Feb 2026 20:57:16 +0000 Subject: [PATCH] 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 --- web/static/style.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/static/style.css b/web/static/style.css index d7aebec..6bef7ef 100644 --- a/web/static/style.css +++ b/web/static/style.css @@ -9,8 +9,9 @@ html, body { #sidebar { height: 100%; + min-height: 0; /* flex items default to min-height:auto, preventing overflow scrolling */ overflow-y: auto; - padding: 1rem; + padding: 1rem 1rem 0; /* no bottom padding — WebKit ignores it on overflow containers */ } #map { @@ -46,7 +47,7 @@ html, body { #stop-list, #route-master-list { - padding-bottom: 1rem; + padding-bottom: 2rem; } #stop-list .stop-item {