fix: resolve checkpoint menu popover overflow (#8867)

This commit is contained in:
Daniel 2025-10-27 15:01:44 -05:00 committed by GitHub
parent 7926dcf00e
commit cff65b4f5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -173,7 +173,7 @@ export const CheckpointMenu = ({ ts, commitHash, checkpoint, onOpenChange }: Che
</Button>
</PopoverTrigger>
</StandardTooltip>
<PopoverContent align="end" container={portalContainer}>
<PopoverContent align="end" container={portalContainer} className="w-auto min-w-max">
<div className="flex flex-col gap-2">
<Button
variant="secondary"

View file

@ -20,7 +20,11 @@ vi.mock("@/components/ui", () => {
)
},
PopoverTrigger: ({ children }: any) => <div data-testid="popover-trigger">{children}</div>,
PopoverContent: ({ children }: any) => <div data-testid="popover-content">{children}</div>,
PopoverContent: ({ children, className, ...rest }: any) => (
<div data-testid="popover-content" className={className} {...rest}>
{children}
</div>
),
}
})