Skip to content

Commit 231f62d

Browse files
committed
Add description to workspace mode selector
1 parent ceaef42 commit 231f62d

File tree

1 file changed

+36
-10
lines changed

1 file changed

+36
-10
lines changed

apps/twig/src/renderer/features/task-detail/components/WorkspaceModeSelect.tsx

Lines changed: 36 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ const MODE_CONFIG: Record<
1717
> = {
1818
local: {
1919
label: "Local",
20-
description: "Runs on your machine",
21-
icon: <Laptop size={14} weight="regular" />,
20+
description: "Edits your repo directly on current branch",
21+
icon: <Laptop size={16} weight="regular" />,
2222
},
2323
worktree: {
2424
label: "Workspace",
25-
description: "Runs in a separate working copy",
26-
icon: <GitBranch size={14} weight="regular" />,
25+
description: "Edits a copy so your work stays isolated",
26+
icon: <GitBranch size={16} weight="regular" />,
2727
},
2828
};
2929

@@ -49,13 +49,39 @@ export function WorkspaceModeSelect({
4949
</DropdownMenu.Trigger>
5050

5151
<DropdownMenu.Content align="start" size="1">
52-
<DropdownMenu.Item onSelect={() => onChange("worktree")}>
53-
<GitBranch size={14} />
54-
Workspace
52+
<DropdownMenu.Item
53+
onSelect={() => onChange("worktree")}
54+
style={{ padding: "6px 8px", height: "auto" }}
55+
>
56+
<div style={{ display: "flex", gap: 6, alignItems: "flex-start" }}>
57+
<GitBranch
58+
size={12}
59+
style={{ marginTop: 2, flexShrink: 0, color: "var(--gray-11)" }}
60+
/>
61+
<div>
62+
<Text size="1">{MODE_CONFIG.worktree.label}</Text>
63+
<Text size="1" color="gray" style={{ display: "block" }}>
64+
{MODE_CONFIG.worktree.description}
65+
</Text>
66+
</div>
67+
</div>
5568
</DropdownMenu.Item>
56-
<DropdownMenu.Item onSelect={() => onChange("local")}>
57-
<Laptop size={14} />
58-
Local
69+
<DropdownMenu.Item
70+
onSelect={() => onChange("local")}
71+
style={{ padding: "6px 8px", height: "auto" }}
72+
>
73+
<div style={{ display: "flex", gap: 6, alignItems: "flex-start" }}>
74+
<Laptop
75+
size={12}
76+
style={{ marginTop: 2, flexShrink: 0, color: "var(--gray-11)" }}
77+
/>
78+
<div>
79+
<Text size="1">{MODE_CONFIG.local.label}</Text>
80+
<Text size="1" color="gray" style={{ display: "block" }}>
81+
{MODE_CONFIG.local.description}
82+
</Text>
83+
</div>
84+
</div>
5985
</DropdownMenu.Item>
6086
</DropdownMenu.Content>
6187
</DropdownMenu.Root>

0 commit comments

Comments
 (0)