UI polish

This commit is contained in:
Patrick Erichsen 2025-07-15 22:16:20 -07:00
parent e72522a665
commit d4623aa51e
5 changed files with 4 additions and 11 deletions

View file

@ -89,7 +89,6 @@ export function SimpleToolCallUI({
<ArgsToggleIcon
isShowing={showingArgs}
setIsShowing={setShowingArgs}
toolCallId={toolCallState.toolCallId}
/>
) : null}
</div>

View file

@ -4,13 +4,11 @@ import { ToolbarButtonWithTooltip } from "../../../components/StyledMarkdownPrev
interface ArgsToggleIconProps {
isShowing: boolean;
setIsShowing: (val: boolean) => void;
toolCallId: string;
}
export const ArgsToggleIcon = ({
isShowing,
setIsShowing,
toolCallId,
}: ArgsToggleIconProps) => {
return (
<ToolbarButtonWithTooltip

View file

@ -27,7 +27,7 @@ export function ToolCallDisplay({
return (
<>
<div className="flex flex-col justify-center p-4 pb-1">
<div className="flex flex-col justify-center">
<div className="mb-2 flex flex-col">
<div className="flex flex-row items-center justify-between gap-1.5">
<div className="flex min-w-0 flex-row items-center gap-2">
@ -50,7 +50,6 @@ export function ToolCallDisplay({
<ArgsToggleIcon
isShowing={argsExpanded}
setIsShowing={setArgsExpanded}
toolCallId={toolCallState.toolCallId}
/>
) : null}
</div>

View file

@ -53,7 +53,7 @@ export function ToolCallStatusMessage({
return (
<div
className="text-description line-clamp-4 min-w-0 break-words"
className="text-description line-clamp-4 min-w-0 break-all"
data-testid="tool-call-title"
>
{`Continue ${intro} ${message}`}

View file

@ -6,7 +6,7 @@ import { useAppSelector } from "../../../redux/hooks";
import FunctionSpecificToolCallDiv from "./FunctionSpecificToolCallDiv";
import { GroupedToolCallHeader } from "./GroupedToolCallHeader";
import { SimpleToolCallUI } from "./SimpleToolCallUI";
import { ToolCallDisplay } from "./ToolCall";
import { ToolCallDisplay } from "./ToolCallDisplay";
import { getStatusIcon, toolCallIcons } from "./utils";
interface ToolCallDivProps {
@ -103,10 +103,7 @@ export function ToolCallDiv({
}
return toolCallStates.map((toolCallState) => (
<div
className="border-border rounded-lg border p-3"
key={toolCallState.toolCallId}
>
<div className="p-4 pb-1" key={toolCallState.toolCallId}>
{renderToolCall(toolCallState)}
</div>
));