From 6f7855b5e07b5ee578460ede9dd90284587bb84b Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 27 Jun 2025 12:50:02 -0500 Subject: [PATCH] fix: Make the entire toolcall argument row clickable to expand (#3118) --- .../src/components/ToolCallArguments.tsx | 20 +++++++++++++------ ui/desktop/src/components/ui/Expand.tsx | 2 +- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/ui/desktop/src/components/ToolCallArguments.tsx b/ui/desktop/src/components/ToolCallArguments.tsx index b2e31a1f..3d2c5f0b 100644 --- a/ui/desktop/src/components/ToolCallArguments.tsx +++ b/ui/desktop/src/components/ToolCallArguments.tsx @@ -39,20 +39,28 @@ export function ToolCallArguments({ args }: ToolCallArgumentsProps) { return (
-
- {key} -
+
+ +
{isExpanded ? ( -
+
) : ( - {value.slice(0, 60)}... + )}
diff --git a/ui/desktop/src/components/ui/Expand.tsx b/ui/desktop/src/components/ui/Expand.tsx index 0529248b..23a4d937 100644 --- a/ui/desktop/src/components/ui/Expand.tsx +++ b/ui/desktop/src/components/ui/Expand.tsx @@ -3,7 +3,7 @@ import { ChevronUp } from 'lucide-react'; export default function Expand({ size, isExpanded }: { size: number; isExpanded: boolean }) { return ( ); }