Skip to content

Commit 80c2f0b

Browse files
feat(web): reveal project filter checkboxes while holding Shift
1 parent 88ab83e commit 80c2f0b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/web/src/components/Sidebar.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ import { stackedThreadToast, toastManager } from "./ui/toast";
229229
import { copyThreadReference } from "../lib/copyThreadReference";
230230
import { threadChipCopyTarget } from "@t3tools/client-runtime/thread-reference";
231231
import { Button } from "./ui/button";
232+
import { CheckboxMark } from "./ui/checkbox";
232233
import {
233234
Combobox,
234235
ComboboxEmpty,
@@ -3028,7 +3029,12 @@ export default function Sidebar({ routeReveal }: { routeReveal: SidebarRouteReve
30283029
if (project) handleProjectSettings(event, project);
30293030
}}
30303031
>
3031-
<ProjectScopeRowIcon isSelected={isSelected}>
3032+
{shortcutModifiers.shiftKey ? (
3033+
<CheckboxMark checked={isSelected} />
3034+
) : null}
3035+
<ProjectScopeRowIcon
3036+
isSelected={isSelected && !shortcutModifiers.shiftKey}
3037+
>
30323038
{project ? (
30333039
<ProjectFavicon project={project} className="size-4 shrink-0" />
30343040
) : (

0 commit comments

Comments
 (0)