From 57859b25e0a51ebe838de5a6ebbf000d4dc75e6f Mon Sep 17 00:00:00 2001 From: Saumya Date: Sun, 10 Aug 2025 22:05:05 +0530 Subject: [PATCH] fix: fix tool call panel and stuff proportions --- .../[projectId]/thread/[threadId]/page.tsx | 6 ++-- .../thread/_components/ThreadLayout.tsx | 2 +- frontend/src/app/share/[threadId]/page.tsx | 2 +- .../thread/chat-input/chat-input.tsx | 29 ++++--------------- .../thread/content/ThreadContent.tsx | 2 +- .../thread/content/ThreadSkeleton.tsx | 6 ++-- .../thread/tool-call-side-panel.tsx | 2 +- .../components/workflows/workflow-builder.tsx | 2 +- .../components/workflows/workflow-layout.tsx | 2 +- 9 files changed, 18 insertions(+), 35 deletions(-) diff --git a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx index 1802b5f6..66fa8662 100644 --- a/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx +++ b/frontend/src/app/(dashboard)/projects/[projectId]/thread/[threadId]/page.tsx @@ -731,12 +731,12 @@ export default function ThreadPage({ "fixed bottom-0 z-10 bg-gradient-to-t from-background via-background/90 to-transparent px-4 pt-8", isSidePanelAnimating ? "" : "transition-all duration-200 ease-in-out", leftSidebarState === 'expanded' ? 'left-[72px] md:left-[256px]' : 'left-[72px]', - isSidePanelOpen ? 'right-[90%] sm:right-[450px] md:right-[500px] lg:right-[550px] xl:right-[650px]' : 'right-0', - isMobile ? 'left-0 right-0' : '' + isSidePanelOpen ? (isMobile ? 'right-[90%]' : 'right-[50vw]') : 'right-0', + isMobile ? 'left-0' : '' )}>
diff --git a/frontend/src/app/share/[threadId]/page.tsx b/frontend/src/app/share/[threadId]/page.tsx index e9692854..829cbbc1 100644 --- a/frontend/src/app/share/[threadId]/page.tsx +++ b/frontend/src/app/share/[threadId]/page.tsx @@ -761,7 +761,7 @@ export default function ThreadPage({ return (
{renderHeader()} ( } }} > - -
(
- {/* Advanced Config Section - Slides underneath chat input */} {enableAdvancedConfig && selectedAgentId && (
-
- {/* Show all config options in a single horizontal line */} +
- - - - - - - - - - - -
)} - = ({ className={`${containerClassName} flex flex-col-reverse ${shouldJustifyToTop ? 'justify-end min-h-full' : ''}`} onScroll={handleScroll} > -
+
{(() => { diff --git a/frontend/src/components/thread/content/ThreadSkeleton.tsx b/frontend/src/components/thread/content/ThreadSkeleton.tsx index 59e63484..d463677f 100644 --- a/frontend/src/components/thread/content/ThreadSkeleton.tsx +++ b/frontend/src/components/thread/content/ThreadSkeleton.tsx @@ -50,7 +50,7 @@ export function ThreadSkeleton({ {/* Skeleton Chat Messages */}
-
+
{/* Generate multiple message skeletons based on messageCount */} {Array.from({ length: messageCount }).map((_, index) => ( @@ -124,7 +124,7 @@ export function ThreadSkeleton({ >
-
+
diff --git a/frontend/src/components/thread/tool-call-side-panel.tsx b/frontend/src/components/thread/tool-call-side-panel.tsx index e4ef3bb5..7f268e56 100644 --- a/frontend/src/components/thread/tool-call-side-panel.tsx +++ b/frontend/src/components/thread/tool-call-side-panel.tsx @@ -727,7 +727,7 @@ export function ToolCallSidePanel({ 'fixed top-2 right-2 bottom-4 border rounded-3xl flex flex-col z-30', isMobile ? 'left-2' - : 'w-[40vw] sm:w-[450px] md:w-[500px] lg:w-[550px] xl:w-[645px]', + : 'w-[50vw]', )} style={{ overflow: 'hidden', diff --git a/frontend/src/components/workflows/workflow-builder.tsx b/frontend/src/components/workflows/workflow-builder.tsx index e2718bec..b158ca1c 100644 --- a/frontend/src/components/workflows/workflow-builder.tsx +++ b/frontend/src/components/workflows/workflow-builder.tsx @@ -159,7 +159,7 @@ export function WorkflowBuilder({ onToolsUpdate={onToolsUpdate} >
-
+
{editableSteps.length === 0 ? (
diff --git a/frontend/src/components/workflows/workflow-layout.tsx b/frontend/src/components/workflows/workflow-layout.tsx index 48a750ee..f5d84bf0 100644 --- a/frontend/src/components/workflows/workflow-layout.tsx +++ b/frontend/src/components/workflows/workflow-layout.tsx @@ -62,7 +62,7 @@ export function WorkflowLayout({