From 802a6f81fda2af556bb93144b5b117514d13e4da Mon Sep 17 00:00:00 2001 From: hauke Date: Tue, 10 Nov 2026 12:20:57 +0100 Subject: [PATCH] fix #14740: compact open-count badge in the sidebar header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Review found two bugs in 0ae6ed3: the " · N offen" suffix lost its leading space to Svelte's whitespace trimming, and the header wrapped the record button + gear onto a second line whenever N > 0, at both the ~288px default and the 260px sidebar floor. Replaces the text suffix with a small rounded count badge (same blue as the row dots) right after "Gespräche", with title/aria-label "N offen", and tightens the header so it fits on one line even at the 260px floor with a two-digit count. Also gives the row dot a thin white ring so it stays visible on the selected row's tinted background. Co-Authored-By: Claude Opus 5.5 (1M context) --- ui/src/lib/CallList.svelte | 3 +++ ui/src/routes/Main.svelte | 39 +++++++++++++++++++++++++------------- 2 files changed, 29 insertions(+), 13 deletions(-) diff --git a/ui/src/lib/CallList.svelte b/ui/src/lib/CallList.svelte index f261d99..6a33ff9 100644 --- a/ui/src/lib/CallList.svelte +++ b/ui/src/lib/CallList.svelte @@ -80,6 +80,9 @@ height: 7px; border-radius: 50%; background: var(--primary); + /* A thin ring so the dot stays visible against the selected row's + primary-soft background (and the hover background). */ + box-shadow: 0 0 0 2px var(--surface); } .row:hover { diff --git a/ui/src/routes/Main.svelte b/ui/src/routes/Main.svelte index 8a60087..ec24c3e 100644 --- a/ui/src/routes/Main.svelte +++ b/ui/src/routes/Main.svelte @@ -336,7 +336,7 @@