click outside to close breakdown modal

This commit is contained in:
lemonknowsall committed 2025-10-13 00:32:39 -07:00
1 parent 8bc8a41910
commit 5dc19e857f
1 file changed
+8 -2
@@ -22,8 +22,14 @@ export function ProofBreakdownModal({ isOpen, onClose, breakdown }: ProofBreakdo
if (!isOpen || !breakdown) return null; if (!isOpen || !breakdown) return null;
return ( return (
<div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"> <div
<Card className="w-full max-w-md border-0 shadow-lg bg-background"> className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4"
onClick={onClose}
>
<Card
className="w-full max-w-md border-0 shadow-lg bg-background"
onClick={(e) => e.stopPropagation()}
>
<CardHeader className="relative"> <CardHeader className="relative">
<Button <Button
onClick={onClose} onClick={onClose}