Skip to content

Commit 8ae883e

Browse files
committed
fix: resolve checkpoint menu popover overflow
- Updated PopoverContent to use auto-sizing (w-auto min-w-max) instead of fixed width - Added whitespace-nowrap to buttons to prevent text wrapping - Maintains center alignment while fixing overflow of 'View Changes Since This Checkpoint' text
1 parent e76ac42 commit 8ae883e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webview-ui/src/components/chat/checkpoints/CheckpointMenu.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,11 @@ export const CheckpointMenu = ({ ts, commitHash, checkpoint, onOpenChange }: Che
173173
</Button>
174174
</PopoverTrigger>
175175
</StandardTooltip>
176-
<PopoverContent align="end" container={portalContainer}>
176+
<PopoverContent align="end" container={portalContainer} className="w-auto min-w-max">
177177
<div className="flex flex-col gap-2">
178178
<Button
179179
variant="secondary"
180+
className="whitespace-nowrap"
180181
onClick={() => {
181182
onDiffFromInit()
182183
setMoreOpen(false)
@@ -186,6 +187,7 @@ export const CheckpointMenu = ({ ts, commitHash, checkpoint, onOpenChange }: Che
186187
</Button>
187188
<Button
188189
variant="secondary"
190+
className="whitespace-nowrap"
189191
onClick={() => {
190192
onDiffWithCurrent()
191193
setMoreOpen(false)

0 commit comments

Comments
 (0)