From b5e2ce3f7e867bd0c4b96ed418760b211e391726 Mon Sep 17 00:00:00 2001 From: Moepchi Date: Mon, 9 Nov 2026 10:01:51 +0000 Subject: [PATCH] Mobile: hamburger menu opens as a left drawer sized to its entries Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU --- web/src/App.css | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/web/src/App.css b/web/src/App.css index fdf0fa0..734c9e3 100644 --- a/web/src/App.css +++ b/web/src/App.css @@ -5826,3 +5826,29 @@ input.ts-identities-uid { gap: 6px; margin: 0; } + +/* --- Mobile: ☰ top level as a left drawer, as wide as its longest entry ---- */ +.ts-app.ts-mobile .ts-menubar-items.ts-nova-menu-panel.ts-nova-menu-panel-open:not(:has(> .ts-menubar-dropdown > .ts-menu)) { + position: fixed; + top: 0; + bottom: 0; + left: 0; + right: auto; + width: max-content; + max-width: 85%; + max-height: none; + margin: 0; + padding: calc(12px + env(safe-area-inset-top)) 8px calc(12px + env(safe-area-inset-bottom)); + border: none; + border-radius: 0 20px 20px 0; + box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.45), 8px 0 24px rgba(0, 0, 0, 0.3); + animation: ts-mobile-drawer-in 0.2s ease-out; +} + +.ts-app.ts-mobile .ts-nova-menu-panel-open:not(:has(> .ts-menubar-dropdown > .ts-menu)) .ts-menubar-dropdown > .ts-menubar-item { + gap: 28px; +} + +@keyframes ts-mobile-drawer-in { + from { transform: translateX(-100%); } +}