Skip to content
Merged
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 @@ -132,7 +132,7 @@ export function NewProjectModal({
};

return (
<Dialog open={open} onOpenChange={handleOpenChange}>
<Dialog open={open} onOpenChange={handleOpenChange} modal>
<DialogContent className="max-w-[420px]">
<DialogHeader>
<DialogTitle>Clone a repository</DialogTitle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export function DashboardSidebarHeader({
toast.success("Project ready — open it from the sidebar.");
}
};

const shortcutText = useHotkeyDisplay("NEW_WORKSPACE").text;
const { data: platform } = electronTrpc.window.getPlatform.useQuery();
// Default to Mac while loading so we don't briefly cover the traffic lights.
Expand Down Expand Up @@ -192,7 +193,10 @@ export function DashboardSidebarHeader({
</TooltipTrigger>
<TooltipContent side="right">Add repository</TooltipContent>
</Tooltip>
<DropdownMenuContent align="start">
<DropdownMenuContent
align="start"
onCloseAutoFocus={(event) => event.preventDefault()}
>
<DropdownMenuItem onSelect={() => openNewProject()}>
<HiMiniPlus className="size-4" />
Create new project
Expand Down Expand Up @@ -300,7 +304,10 @@ export function DashboardSidebarHeader({
</TooltipTrigger>
<TooltipContent side="right">Add repository</TooltipContent>
</Tooltip>
<DropdownMenuContent align="end">
<DropdownMenuContent
align="end"
onCloseAutoFocus={(event) => event.preventDefault()}
>
<DropdownMenuItem onSelect={() => openNewProject()}>
<HiMiniPlus className="size-4" />
Create new project
Expand Down
Loading