Skip to content

Commit 1d65e17

Browse files
committed
Cap the max width of the branch picker so it doesn't extend outside of the box for large branches
1 parent 9f61796 commit 1d65e17

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

apps/array/src/renderer/features/task-detail/components/BranchSelect.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,10 +197,16 @@ export function BranchSelect({
197197
return (
198198
<DropdownMenu.Root onOpenChange={handleOpenChange}>
199199
<DropdownMenu.Trigger>
200-
<Button color="gray" variant="outline" size={size} disabled={isLoading}>
201-
<Flex justify="between" align="center" gap="2">
200+
<Button
201+
color="gray"
202+
variant="outline"
203+
size={size}
204+
disabled={isLoading}
205+
style={{ maxWidth: 280, overflow: "hidden" }}
206+
>
207+
<Flex justify="between" align="center" gap="2" style={{ minWidth: 0 }}>
202208
<Flex align="center" gap="2" style={{ minWidth: 0 }}>
203-
<GitBranchIcon size={16} weight="regular" />
209+
<GitBranchIcon size={16} weight="regular" style={{ flexShrink: 0 }} />
204210
<Text
205211
size={size}
206212
style={{

0 commit comments

Comments
 (0)