From b5a85fdf5fd601119476ae7c209419094964a5c2 Mon Sep 17 00:00:00 2001 From: 4gray Date: Thu, 30 Apr 2026 20:32:55 +0200 Subject: [PATCH] style: add shared count-badge style and update component usage Entire-Checkpoint: c2cea9c530e6 --- apps/web/src/styles.scss | 22 +++++++++++++++++++ .../category-view.component.html | 4 ++-- .../category-view.component.scss | 18 +++++++-------- .../content-rail-shell.component.html | 2 +- .../content-rail-shell.component.scss | 16 -------------- .../lib/rails/dashboard-rail.component.html | 2 +- .../lib/rails/dashboard-rail.component.scss | 18 --------------- ...space-context-category-view.component.html | 6 ++--- ...space-context-category-view.component.scss | 17 +++++++------- 9 files changed, 46 insertions(+), 59 deletions(-) diff --git a/apps/web/src/styles.scss b/apps/web/src/styles.scss index c55c0e60e..f1ec3dcfb 100644 --- a/apps/web/src/styles.scss +++ b/apps/web/src/styles.scss @@ -70,6 +70,28 @@ } } +// Shared count-badge pill. Section headers (dashboard rails, content rails) +// and dense list rows (category sidebars) share a single visual treatment so +// "count" reads consistently across the app. Theme-aware via --app-muted-color. +.app-count-badge { + display: inline-flex; + align-items: center; + flex-shrink: 0; + font-size: 0.78rem; + font-weight: 500; + line-height: 1; + color: var(--app-muted-color, #8891a4); + font-variant-numeric: tabular-nums; + padding: 2px 8px; + border-radius: 999px; + background: color-mix( + in srgb, + var(--app-muted-color, #8891a4) 18%, + transparent + ); + letter-spacing: 0; +} + app-root.macos-platform .current-playlist { padding-top: 30px; } diff --git a/libs/portal/shared/ui/src/lib/components/category-view/category-view.component.html b/libs/portal/shared/ui/src/lib/components/category-view/category-view.component.html index cd7746e26..10dfcd771 100644 --- a/libs/portal/shared/ui/src/lib/components/category-view/category-view.component.html +++ b/libs/portal/shared/ui/src/lib/components/category-view/category-view.component.html @@ -17,11 +17,11 @@ }} @if (showCounts()) { -