Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function NewWorkspaceModal() {
<NewWorkspaceModalDraftProvider onClose={closeModal}>
<PromptInputProvider>
<PromptInputResetSync />
<Dialog open={isOpen} onOpenChange={(open) => !open && closeModal()}>
<Dialog modal open={isOpen} onOpenChange={(open) => !open && closeModal()}>
<DialogHeader className="sr-only">
<DialogTitle>New Workspace</DialogTitle>
<DialogDescription>Create a new workspace</DialogDescription>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function DashboardNewWorkspaceModal() {

return (
<DashboardNewWorkspaceDraftProvider onClose={closeModal}>
<Dialog open={isOpen} onOpenChange={(open) => !open && closeModal()}>
<Dialog modal open={isOpen} onOpenChange={(open) => !open && closeModal()}>
<DialogHeader className="sr-only">
<DialogTitle>New Workspace</DialogTitle>
<DialogDescription>
Expand All @@ -29,6 +29,7 @@ export function DashboardNewWorkspaceModal() {
</DialogHeader>
<DialogContent
showCloseButton={false}
onFocusOutside={(e) => e.preventDefault()}
className="bg-popover text-popover-foreground sm:max-w-[560px] max-h-[min(70vh,600px)] !top-[calc(50%-min(35vh,300px))] !-translate-y-0 flex flex-col overflow-hidden p-0"
>
<DashboardNewWorkspaceForm
Expand Down