Skip to content

Commit 72d219b

Browse files
authored
Revert "Allow closing the task modal by clicking in the margins (#165)" (#167)
1 parent d2b8b95 commit 72d219b

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

apps/web/src/app/(authenticated)/usage/TaskModal.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,11 @@ export const TaskModal = ({ task, open, onClose }: TaskModalProps) => {
7272
return (
7373
<Dialog open={open} onOpenChange={onClose}>
7474
<DialogContentFullScreen>
75-
<div className="fixed inset-0 p-8 md:p-16" onClick={onClose}>
76-
<div
77-
className="container mx-auto bg-background rounded-lg shadow-lg max-h-full overflow-hidden h-full"
78-
onClick={(e) => e.stopPropagation()}
79-
>
80-
<TaskDetails
81-
task={task}
82-
messages={messages}
83-
headerActions={headerActions}
84-
/>
85-
</div>
86-
</div>
75+
<TaskDetails
76+
task={task}
77+
messages={messages}
78+
headerActions={headerActions}
79+
/>
8780
</DialogContentFullScreen>
8881
</Dialog>
8982
);

0 commit comments

Comments
 (0)