Allow closing the task modal by clicking in the margins (#165)

This commit is contained in:
Matt Rubens 2025-07-01 10:56:31 -04:00 committed by GitHub
parent 2d2096c58f
commit 3ad3c3a68e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,11 +72,18 @@ export const TaskModal = ({ task, open, onClose }: TaskModalProps) => {
return (
<Dialog open={open} onOpenChange={onClose}>
<DialogContentFullScreen>
<TaskDetails
task={task}
messages={messages}
headerActions={headerActions}
/>
<div className="fixed inset-0 p-8 md:p-16" onClick={onClose}>
<div
className="container mx-auto bg-background rounded-lg shadow-lg max-h-full overflow-hidden h-full"
onClick={(e) => e.stopPropagation()}
>
<TaskDetails
task={task}
messages={messages}
headerActions={headerActions}
/>
</div>
</div>
</DialogContentFullScreen>
</Dialog>
);