From d4d2c495381e13950225847b6134a426a17b4ad7 Mon Sep 17 00:00:00 2001 From: Gabriel20xx Date: Sat, 12 Sep 2026 23:03:36 +0200 Subject: [PATCH] Fix mobile header menu button jumping position on toggle The button's top offset was unset, so its absolute-position static position was recomputed from the flex-wrap layout whenever .sc-nav wrapped onto its own row on open, causing a visible vertical jump. Pinning top to the header's mobile padding keeps it stationary. Co-Authored-By: Claude Sonnet 5 --- packages/web-ui/src/lib/styles.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/web-ui/src/lib/styles.css b/packages/web-ui/src/lib/styles.css index 7fe03fa..784389a 100644 --- a/packages/web-ui/src/lib/styles.css +++ b/packages/web-ui/src/lib/styles.css @@ -1181,8 +1181,12 @@ padding: 0.75rem 1rem; } + /* top is pinned explicitly: with it unset, the button's static-position offset is + recomputed from the flex-wrap layout, which changes height once .sc-nav wraps onto + its own row on open - so the button visibly jumps vertically on click. */ .sc-mobile-menu-button { position: absolute; + top: 0.75rem; left: 50%; display: grid; order: 3;