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

This commit is contained in:
Matt Rubens 2025-07-01 11:59:24 -04:00 committed by GitHub
parent d2b8b9551f
commit 72d219b691
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -72,18 +72,11 @@ export const TaskModal = ({ task, open, onClose }: TaskModalProps) => {
return (
<Dialog open={open} onOpenChange={onClose}>
<DialogContentFullScreen>
<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>
<TaskDetails
task={task}
messages={messages}
headerActions={headerActions}
/>
</DialogContentFullScreen>
</Dialog>
);