mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-03 08:07:21 +00:00
click outside to close breakdown modal
This commit is contained in:
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;
|
||||
|
||||
return (
|
||||
<div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4">
|
||||
<Card className="w-full max-w-md border-0 shadow-lg bg-background">
|
||||
<div
|
||||
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">
|
||||
<Button
|
||||
onClick={onClose}
|
||||
|
||||
Reference in new issue
Block a user