authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-03-03 19:32:41-08:00
committergravatar for jmarminge@gmail.comJulius Marminge <jmarminge@gmail.com> 2026-03-03 22:31:45-08:00
log7559f5ad70349b62d919e4a488ff70cc8c7847c6
treedc2553e5ebcd0c96cf88e8185ba4da44e0ee0844
parent605e8143e09229d1c825f33afa26d1f2c10d8459

style


1 files changed, 9 insertions(+), 4 deletions(-)

apps/web/src/components/Sidebar.tsx+9-4
...@@ -1,4 +1,10 @@...@@ -1,4 +1,10 @@
1import { ChevronRightIcon, FolderIcon, GitPullRequestIcon, RocketIcon, TerminalIcon } from "lucide-react";1import {
2 ChevronRightIcon,
3 FolderIcon,
4 GitPullRequestIcon,
5 RocketIcon,
6 TerminalIcon,
7} from "lucide-react";
2import { useCallback, useEffect, useMemo, useRef, useState } from "react";8import { useCallback, useEffect, useMemo, useRef, useState } from "react";
3import {9import {
4 DEFAULT_MODEL,10 DEFAULT_MODEL,
...@@ -783,8 +789,7 @@ export default function Sidebar() {...@@ -783,8 +789,7 @@ export default function Sidebar() {
783 }789 }
784790
785 if (!isChatNewShortcut(event, keybindings)) return;791 if (!isChatNewShortcut(event, keybindings)) return;
786 const projectId =792 const projectId = activeThread?.projectId ?? activeDraftThread?.projectId ?? projects[0]?.id;
787 activeThread?.projectId ?? activeDraftThread?.projectId ?? projects[0]?.id;
788 if (!projectId) return;793 if (!projectId) return;
789 event.preventDefault();794 event.preventDefault();
790 void handleNewThread(projectId, {795 void handleNewThread(projectId, {
...@@ -927,7 +932,7 @@ export default function Sidebar() {...@@ -927,7 +932,7 @@ export default function Sidebar() {
927 type="button"932 type="button"
928 aria-label={desktopUpdateTooltip}933 aria-label={desktopUpdateTooltip}
929 disabled={desktopUpdateButtonDisabled}934 disabled={desktopUpdateButtonDisabled}
930 className={`inline-flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-60 ${desktopUpdateButtonClasses}`}935 className={`inline-flex size-7 ml-auto mt-2 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground disabled:cursor-not-allowed disabled:opacity-60 ${desktopUpdateButtonClasses}`}
931 onClick={handleDesktopUpdateButtonClick}936 onClick={handleDesktopUpdateButtonClick}
932 >937 >
933 <RocketIcon className="size-3.5" />938 <RocketIcon className="size-3.5" />