fix #14740: compact open-count badge in the sidebar header
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) <noreply@anthropic.com>
This commit is contained in:
@@ -80,6 +80,9 @@
|
|||||||
height: 7px;
|
height: 7px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: var(--primary);
|
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 {
|
.row:hover {
|
||||||
|
|||||||
+26
-13
@@ -336,7 +336,7 @@
|
|||||||
<UpdateBanner />
|
<UpdateBanner />
|
||||||
<aside class="sidebar">
|
<aside class="sidebar">
|
||||||
<header class="sidebar-header">
|
<header class="sidebar-header">
|
||||||
<h1>Gespräche{#if openCount > 0} <span class="open-count">· {openCount} offen</span>{/if}</h1>
|
<h1>Gespräche{#if openCount > 0}<span class="open-count" title="{openCount} offen" aria-label="{openCount} offen">{openCount}</span>{/if}</h1>
|
||||||
<div class="header-actions">
|
<div class="header-actions">
|
||||||
<button
|
<button
|
||||||
class="btn small record-btn"
|
class="btn small record-btn"
|
||||||
@@ -529,36 +529,49 @@
|
|||||||
|
|
||||||
.sidebar-header {
|
.sidebar-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
gap: 4px 8px;
|
gap: 4px;
|
||||||
padding: 14px 12px 10px 16px;
|
padding: 12px 6px 8px 10px;
|
||||||
border-bottom: 1px solid var(--border);
|
border-bottom: 1px solid var(--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-header h1 {
|
.sidebar-header h1 {
|
||||||
flex: 1 1 auto;
|
flex: 0 1 auto;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
font-size: 16px;
|
font-size: 15px;
|
||||||
overflow-wrap: break-word;
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.open-count {
|
.open-count {
|
||||||
font-size: 13px;
|
display: inline-flex;
|
||||||
font-weight: 600;
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
margin-left: 4px;
|
||||||
|
min-width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
padding: 0 3px;
|
||||||
|
border-radius: 999px;
|
||||||
|
background: var(--primary-soft);
|
||||||
color: var(--primary);
|
color: var(--primary);
|
||||||
white-space: nowrap;
|
font-size: 10px;
|
||||||
|
font-weight: 700;
|
||||||
|
line-height: 1;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-actions {
|
.header-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 6px;
|
gap: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-btn {
|
.record-btn {
|
||||||
|
padding: 2px 6px;
|
||||||
|
font-size: 11px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -575,9 +588,9 @@
|
|||||||
|
|
||||||
.gear {
|
.gear {
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: 18px;
|
font-size: 15px;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
padding: 4px 6px;
|
padding: 3px 4px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user