From ddc461ccf0f92376c50bbc02fa513319c41f5973 Mon Sep 17 00:00:00 2001
From: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
Date: Fri, 24 Apr 2026 15:17:44 -0700
Subject: [PATCH] refactor(ui): polish sidebar typography and compact task page
chrome
Tighten sidebar fonts/icons (Tasks label, WORKSPACES section, search) and
collapse the task page close button into the source-filter row so the top
chrome forms one compact band.
---
src/renderer/src/components/TaskPage.tsx | 53 +++++++++----------
.../src/components/sidebar/SearchBar.tsx | 9 ++--
.../src/components/sidebar/SidebarHeader.tsx | 6 +--
.../src/components/sidebar/SidebarNav.tsx | 6 +--
4 files changed, 38 insertions(+), 36 deletions(-)
diff --git a/src/renderer/src/components/TaskPage.tsx b/src/renderer/src/components/TaskPage.tsx
index 67e307d986c..7e0b831e921 100644
--- a/src/renderer/src/components/TaskPage.tsx
+++ b/src/renderer/src/components/TaskPage.tsx
@@ -1221,34 +1221,33 @@ export default function TaskPage(): React.JSX.Element {
) : null}
- {/* Why: Close sits in its own row below the titlebar strip so it can
- never overlap the floating macOS traffic lights. Kept left-aligned
- to stay out of the app sidebar on the right edge. */}
-
-
-
-
-
-
- Close · Esc
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ {/* Why: Close is anchored left in the same row as the
+ source icons so the top chrome is one compact band.
+ Left-aligned keeps it clear of the app sidebar on the
+ right edge. */}
+
+
+
+
+
+ Close · Esc
+
+
+
{SOURCE_OPTIONS.map((source) => {
const active = taskSource === source.id
return (
diff --git a/src/renderer/src/components/sidebar/SearchBar.tsx b/src/renderer/src/components/sidebar/SearchBar.tsx
index 86e3bc52cad..f762d47260b 100644
--- a/src/renderer/src/components/sidebar/SearchBar.tsx
+++ b/src/renderer/src/components/sidebar/SearchBar.tsx
@@ -75,12 +75,15 @@ const SearchBar = React.memo(function SearchBar() {
return (