From edd6ba9ae2cf8e47095b1a03be792a97e1f2b1b6 Mon Sep 17 00:00:00 2001 From: hermes-explorigin Date: Sun, 9 Aug 2026 21:14:01 +0000 Subject: [PATCH] Fix viewport overflow so the Directions panel stays on-screen The page had two stacked 100vh containers (.app and .wrap) which made the page taller than the viewport and forced scrolling. Fixes: - .wrap now fills its grid cell (height:100%, min-height:0, overflow:hidden) instead of a second 100vh - .app uses 100dvh + overflow:hidden; html/body/#svelte get height:100%, body overflow:hidden - Directions panel is now viewport-anchored (top:64px/bottom:14px) with a max-height and internal overflow-y so it can't exceed the screen - DirectionsPanel itself scrolls internally when content is tall --- src/lib/components/DirectionsPanel.svelte | 6 +++++- src/lib/components/MapView.svelte | 13 ++++++++++--- src/routes/+layout.svelte | 12 ++++++++++++ src/routes/+page.svelte | 8 ++++++-- 4 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/lib/components/DirectionsPanel.svelte b/src/lib/components/DirectionsPanel.svelte index f804b4b..fa469fe 100644 --- a/src/lib/components/DirectionsPanel.svelte +++ b/src/lib/components/DirectionsPanel.svelte @@ -274,7 +274,11 @@ diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index d9e40f0..8b253b2 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -53,10 +53,14 @@