From 09288571aa6a2918bfad74e35122855c3f7424bf Mon Sep 17 00:00:00 2001 From: tusharmagar Date: Wed, 18 Feb 2026 11:22:47 +0530 Subject: [PATCH] implement keyboard shortcuts for tab management and adjust layout styles in App and TabBar components --- apps/x/apps/renderer/src/App.tsx | 82 ++++++++++++++----- .../apps/renderer/src/components/tab-bar.tsx | 64 ++++++++------- 2 files changed, 99 insertions(+), 47 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index 33b5cea1..8a8e7d44 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -585,7 +585,7 @@ function ContentHeader({ return (
{!isCollapsed && onNavigateBack && onNavigateForward ? ( -
+
{selectedPath && ( -
+
{isSaving ? ( <> @@ -2637,7 +2681,7 @@ function App() { variant="ghost" size="sm" onClick={() => { void navigateToView({ type: 'chat', runId }) }} - className="titlebar-no-drag text-foreground" + className="titlebar-no-drag text-foreground self-center shrink-0" > Close Graph @@ -2646,7 +2690,7 @@ function App() { + {processing && ( + + )} + {title} + {tabs.length > 1 && ( + { + e.stopPropagation() + onCloseTab(tabId) + }} + aria-label="Close tab" + > + + + )} + + {/* Right edge divider after last tab to close off the section */} + {index === tabs.length - 1 && ( +