From 215e0aedd6c4736a50abc675242b5acbff67f60c Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Mon, 18 May 2026 23:18:47 +0530 Subject: [PATCH] make new chat an icon on the top --- apps/x/apps/renderer/src/App.tsx | 16 +++++++++++++++- .../renderer/src/components/sidebar-content.tsx | 11 ----------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index e6c050b3..cac3dbf4 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -622,12 +622,14 @@ function parseDeepLink(input: string): ViewState | null { /** Sidebar toggle (fixed position, top-left) */ function FixedSidebarToggle({ leftInsetPx, + onNewChat, }: { leftInsetPx: number + onNewChat?: () => void }) { const { toggleSidebar } = useSidebar() return ( -
+
) } @@ -5388,6 +5401,7 @@ function App() { {/* Rendered last so its no-drag region paints over the sidebar drag region */}
diff --git a/apps/x/apps/renderer/src/components/sidebar-content.tsx b/apps/x/apps/renderer/src/components/sidebar-content.tsx index f4c469bc..88654f68 100644 --- a/apps/x/apps/renderer/src/components/sidebar-content.tsx +++ b/apps/x/apps/renderer/src/components/sidebar-content.tsx @@ -21,7 +21,6 @@ import { Pencil, Radio, SearchIcon, - SquarePen, Table2, Plug, Lightbulb, @@ -591,16 +590,6 @@ export function SidebarContentPanel({
{/* Quick action buttons */}
- {onNewChat && ( - - )} {onOpenSearch && (