Skip to content
This repository was archived by the owner on Aug 6, 2026. It is now read-only.

Commit 191a02a

Browse files
authored
style(ui): label the Spaces my-tasks switch "Mine"
Generated-By: PostHog Code Task-Id: 0331ac58-0a1c-4b4e-b884-2ff7d8e71986
1 parent 0ae6d88 commit 191a02a

1 file changed

Lines changed: 20 additions & 17 deletions

File tree

‎packages/ui/src/features/canvas/components/SpacesSidebarNav.tsx‎

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -130,23 +130,26 @@ export function SpacesSidebarNav() {
130130
{/* The section label, with one filter over every space's task list. */}
131131
<div className="flex shrink-0 items-center justify-between px-2 pr-3">
132132
<MenuLabel>Spaces</MenuLabel>
133-
<Tooltip>
134-
<TooltipTrigger
135-
render={
136-
<Switch
137-
size="sm"
138-
aria-label="Only show my tasks"
139-
checked={onlyMyTasks}
140-
onCheckedChange={toggleOnlyMyTasks}
141-
/>
142-
}
143-
/>
144-
<TooltipContent side="bottom">
145-
{onlyMyTasks
146-
? "Showing only your tasks — switch off to see everyone's"
147-
: "Only show tasks you created, in every space"}
148-
</TooltipContent>
149-
</Tooltip>
133+
<div className="flex items-center gap-1.5">
134+
<span className="text-[12px] text-muted-foreground">Mine</span>
135+
<Tooltip>
136+
<TooltipTrigger
137+
render={
138+
<Switch
139+
size="sm"
140+
aria-label="Only show my tasks"
141+
checked={onlyMyTasks}
142+
onCheckedChange={toggleOnlyMyTasks}
143+
/>
144+
}
145+
/>
146+
<TooltipContent side="bottom">
147+
{onlyMyTasks
148+
? "Showing only your tasks — switch off to see everyone's"
149+
: "Only show tasks you created, in every space"}
150+
</TooltipContent>
151+
</Tooltip>
152+
</div>
150153
</div>
151154

152155
{/* Pinned (starred) spaces; #me first and fixed, the rest reorderable. */}

0 commit comments

Comments
 (0)