Skip to content

Commit cff65b4

Browse files
authored
fix: resolve checkpoint menu popover overflow (#8867)
1 parent 7926dcf commit cff65b4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ 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"

webview-ui/src/components/chat/checkpoints/__tests__/CheckpointSaved.spec.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ vi.mock("@/components/ui", () => {
2020
)
2121
},
2222
PopoverTrigger: ({ children }: any) => <div data-testid="popover-trigger">{children}</div>,
23-
PopoverContent: ({ children }: any) => <div data-testid="popover-content">{children}</div>,
23+
PopoverContent: ({ children, className, ...rest }: any) => (
24+
<div data-testid="popover-content" className={className} {...rest}>
25+
{children}
26+
</div>
27+
),
2428
}
2529
})
2630

0 commit comments

Comments
 (0)