mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-20 21:04:45 +08:00
feat: adjust tooltips
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user