From 276791e7af2fbca3c29ae9910f01da70f4703211 Mon Sep 17 00:00:00 2001 From: dadachann <185672915+dadachann@users.noreply.github.com> Date: Sun, 26 Jul 2026 00:23:17 +0800 Subject: [PATCH] fix(ui): align workspace switcher with sidebar entries --- web/src/app/home/components/home-sidebar/HomeSidebar.tsx | 2 +- web/tests/unit/workspace-switcher-layout.test.mjs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx index 9e21dc09c..75da46850 100644 --- a/web/src/app/home/components/home-sidebar/HomeSidebar.tsx +++ b/web/src/app/home/components/home-sidebar/HomeSidebar.tsx @@ -1916,7 +1916,7 @@ export default function HomeSidebar({
- +
{/* Navigation items grouped by section */} diff --git a/web/tests/unit/workspace-switcher-layout.test.mjs b/web/tests/unit/workspace-switcher-layout.test.mjs index d92e52aa0..ee02b3fc7 100644 --- a/web/tests/unit/workspace-switcher-layout.test.mjs +++ b/web/tests/unit/workspace-switcher-layout.test.mjs @@ -94,10 +94,14 @@ test('moves Cloud plan upgrades into Workspace Settings', () => { assert.ok(toolbarEnd < membersHeading && membersHeading < cloudInvite); }); -test('fills 80 percent of the sidebar, centers the trigger, and truncates long names', () => { +test('aligns the workspace trigger with navigation entries on both sides and truncates long names', () => { assert.match( homeSidebarSource, - /]*>[\s\S]*