From 1d788ee20fb1a2143ee0d475867151d6be7cb10c Mon Sep 17 00:00:00 2001 From: "v.lagerev" Date: Thu, 21 May 2026 01:05:34 +0300 Subject: [PATCH] fix(workspace-switcher): switch space rows to SurfaceVariant so inactive bg blends with the sheet silhouette instead of reading as dark cards --- .../client/channels/WorkspaceSwitcherSheet.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/pages/client/channels/WorkspaceSwitcherSheet.tsx b/src/app/pages/client/channels/WorkspaceSwitcherSheet.tsx index 53d6b369..d8c23372 100644 --- a/src/app/pages/client/channels/WorkspaceSwitcherSheet.tsx +++ b/src/app/pages/client/channels/WorkspaceSwitcherSheet.tsx @@ -70,11 +70,13 @@ type SpaceRowProps = { }; // One space row in the sheet. Mirrors the DM-row visual: avatar 40, -// two text lines (name + member-count subtitle). The active community -// is signalled solely via `aria-selected` — Folds NavItem paints -// `ContainerActive` on `&[aria-selected=true]`, which is enough on -// this surface tier; an explicit trailing label was tried and -// dropped per product call. +// two text lines (name + member-count subtitle). Variant is +// `SurfaceVariant` so the inactive row bg (`SurfaceVariant.Container` +// = #181a20) matches the sheet silhouette and blends into it — same +// treatment as `CreateCommunityRow` above. The active community is +// signalled solely via `aria-selected` → `ContainerActive` (#2a2d36), +// which lifts cleanly off the sheet without a card outline; an +// explicit trailing label was tried and dropped per product call. // // `useRoomName` lives here so the per-space subscription stays scoped // (Rules of Hooks) and admin renames reflect in the dropdown without @@ -86,7 +88,7 @@ function SpaceRow({ space, isActive, onPick }: SpaceRowProps) { return (