From edde10ab7ca6eae1ab6ec6c7ce6306de9c312147 Mon Sep 17 00:00:00 2001 From: Abhijay Jain Date: Fri, 6 Feb 2026 05:28:46 +0530 Subject: [PATCH] fix(ui): keep Hub chat input from overlapping SessionInsights on paste (#6719) Signed-off-by: Abhijay007 Co-authored-by: Zane Staggs --- ui/desktop/src/components/Hub.tsx | 42 ++++++++++--------- .../src/components/Layout/AppLayout.tsx | 2 +- .../components/sessions/SessionsInsights.tsx | 4 +- ui/desktop/src/components/ui/sidebar.tsx | 4 +- 4 files changed, 27 insertions(+), 25 deletions(-) diff --git a/ui/desktop/src/components/Hub.tsx b/ui/desktop/src/components/Hub.tsx index a36cff26..91de96bd 100644 --- a/ui/desktop/src/components/Hub.tsx +++ b/ui/desktop/src/components/Hub.tsx @@ -73,8 +73,8 @@ export default function Hub({ }; return ( -
-
+
+
{isCreatingSession && (
@@ -83,24 +83,26 @@ export default function Hub({ )}
- {}} - initialValue="" - setView={setView} - totalTokens={0} - accumulatedInputTokens={0} - accumulatedOutputTokens={0} - droppedFiles={[]} - onFilesProcessed={() => {}} - messages={[]} - disableAnimation={false} - sessionCosts={undefined} - toolCount={0} - onWorkingDirChange={setWorkingDir} - /> +
+ {}} + initialValue="" + setView={setView} + totalTokens={0} + accumulatedInputTokens={0} + accumulatedOutputTokens={0} + droppedFiles={[]} + onFilesProcessed={() => {}} + messages={[]} + disableAnimation={false} + sessionCosts={undefined} + toolCount={0} + onWorkingDirChange={setWorkingDir} + /> +
); } diff --git a/ui/desktop/src/components/Layout/AppLayout.tsx b/ui/desktop/src/components/Layout/AppLayout.tsx index 4490dd51..ef2fb2ae 100644 --- a/ui/desktop/src/components/Layout/AppLayout.tsx +++ b/ui/desktop/src/components/Layout/AppLayout.tsx @@ -91,7 +91,7 @@ const AppLayoutContent: React.FC = ({ activeSessions }) = }; return ( -
+
{!shouldHideButtons && (
-
+
{/* Skeleton chat items */}
@@ -295,7 +295,7 @@ export function SessionInsights() { See all
-
+
{isLoadingSessions ? ( <>
diff --git a/ui/desktop/src/components/ui/sidebar.tsx b/ui/desktop/src/components/ui/sidebar.tsx index e3872c71..cc57e507 100644 --- a/ui/desktop/src/components/ui/sidebar.tsx +++ b/ui/desktop/src/components/ui/sidebar.tsx @@ -125,7 +125,7 @@ function SidebarProvider({ } as React.CSSProperties } className={cn( - 'group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full', + 'group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-svh min-h-0 w-full overflow-hidden', className )} {...props} @@ -294,7 +294,7 @@ function SidebarInset({ className, ...props }: React.ComponentProps<'main'>) {