From fecb7af3f633d2b992d9389d9d54d995485be797 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Thu, 16 Oct 2025 12:22:19 +0200 Subject: [PATCH] sidebar tags style --- frontend/src/sidebar/Sidebar.jsx | 5 ++++- frontend/src/styles.css | 9 +++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/src/sidebar/Sidebar.jsx b/frontend/src/sidebar/Sidebar.jsx index d31c5b8..58e5c57 100644 --- a/frontend/src/sidebar/Sidebar.jsx +++ b/frontend/src/sidebar/Sidebar.jsx @@ -208,7 +208,10 @@ const Sidebar = ({

Tags

{tags.length} -
+
{tags.length ? ( tags.map((tag) => { const isActive = activeTagSet.has(tag.id); diff --git a/frontend/src/styles.css b/frontend/src/styles.css index 403f021..11d1e99 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -993,7 +993,8 @@ button.icon-button.ghost:hover:not([disabled]) { cursor: pointer; background: var(--surface-soft); color: var(--fg); - transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; + transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, + opacity 0.12s ease; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); } @@ -1010,7 +1011,11 @@ button.icon-button.ghost:hover:not([disabled]) { .sidebar-tag-pill.active { border-color: var(--accent); - box-shadow: 0 0 0 1px var(--accent); + box-shadow: 0 0 0 1.5px var(--accent); +} + +.sidebar-tag-cloud--has-active .sidebar-tag-pill:not(.active) { + opacity: 0.45; } .sidebar-correspondent-list {