feat: adjust tooltips

This commit is contained in:
Henry Li
2026-02-02 09:32:18 +08:00
parent 6d31c1c5cf
commit 51b4ed3124
5 changed files with 16 additions and 3 deletions

View File

@@ -320,7 +320,13 @@ function ToolCall({
return (
<ChainOfThoughtStep key={id} label={description} icon={BookOpenTextIcon}>
{path && (
<Tooltip content={<pre>{result as string}</pre>}>
<Tooltip
content={
<pre className="max-w-[95vw] whitespace-pre-wrap">
{result as string}
</pre>
}
>
<ChainOfThoughtSearchResult className="cursor-pointer">
{path}
</ChainOfThoughtSearchResult>
@@ -363,7 +369,11 @@ function ToolCall({
}}
>
{path && (
<ChainOfThoughtSearchResult>{path}</ChainOfThoughtSearchResult>
<Tooltip content={t.toolCalls.clickToViewContent}>
<ChainOfThoughtSearchResult className="cursor-pointer">
{path}
</ChainOfThoughtSearchResult>
</Tooltip>
)}
</ChainOfThoughtStep>
);