From 60b10c69a7f68e87a08ce2909e4e6dd67ae4b672 Mon Sep 17 00:00:00 2001 From: yetone Date: Wed, 18 Nov 2026 04:13:29 +0800 Subject: [PATCH] gui: Routing's live note gives way before its buttons in a narrow window (#6669) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since Routing groups › (11-06) and Settings › (a6e4cf763) joined Hide accounts in Routing's head, German ran 38px past a 560px window ("Konten verbergen" to 590 in a 552px view), so view-no-sideways was red in both engines. The head's note ("live, as the gateway decides") now shrinks first and ends in an ellipsis, as the plugin panel's head note does; the three buttons stay whole. The phone layout, which puts the note on a line of its own, is unchanged. Run on mica at this tree (origin/main 169446a1d + this change), Playwright 1.62.0: - view-no-sideways and phone-no-sideways: 58/58, both engines (red at origin/main: "routing: scrolls 38px sideways here", de window 560px). - the 15 GUI files that touch Routing's head (account-mask, mask-emails, mobile-web, provider-mask, reduce-motion, routing-*, settings-back, settings-places, view-scrollbar-drag and others), --test-concurrency=1: 396 pass. mobile-web's 8 "desktop matches origin/main" cases fail because mica-run's copy has no .git to read origin/main from, the same without this change. provider-mask's en 420 case timed out waiting for the Providers list (#5109, commented); alone it passes 140/140. Found by measuring every element of #view-routing past its width at de 560px in Chromium: button#rtMask [458,590]. Not run: the whole GUI suite (other sessions' GUI runs on mote and mica), the real Linux app. --- internal/gui/assets/plugins/routing/routing.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/gui/assets/plugins/routing/routing.css b/internal/gui/assets/plugins/routing/routing.css index 7b7b5a14f..66d8c2987 100644 --- a/internal/gui/assets/plugins/routing/routing.css +++ b/internal/gui/assets/plugins/routing/routing.css @@ -304,6 +304,9 @@ :is(#view-routing, #view-groups) .row-head { margin: 14px 0 6px; padding: 0 2px; gap: 0; } :is(#view-routing, #view-groups) .row-head .note { font-size: 11px; color: var(--faint); margin-left: 8px; } #view-routing .row-head .rt-livedot + .note { margin-left: 8px; } +/* the note gives way first: with Routing groups ›, Settings › and Hide + accounts beside it, German ran 38px past a 560px window (#6669) */ +#view-routing > .row-head .note { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rt-gnew { display: inline-flex; align-items: center; gap: 4px; } /* the toolbar's Hide plans: every group's quota lines folded */ .rt-groups.rt-noplans .rt-gquota { display: none; }