mirror of
https://git.mirrors.martin98.com/https://github.com/bytedance/deer-flow
synced 2025-08-18 05:25:59 +08:00
feat: adjust margins
This commit is contained in:
parent
8f8a6add71
commit
fe7f708787
@ -139,7 +139,7 @@ function WebSearchToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
|||||||
[searchResults],
|
[searchResults],
|
||||||
);
|
);
|
||||||
return (
|
return (
|
||||||
<section>
|
<section className="mt-4">
|
||||||
<div className="font-medium italic">
|
<div className="font-medium italic">
|
||||||
<RainbowText
|
<RainbowText
|
||||||
className="flex items-center"
|
className="flex items-center"
|
||||||
@ -224,21 +224,33 @@ function CrawlToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
|
|||||||
);
|
);
|
||||||
const title = useMemo(() => __pageCache.get(url), [url]);
|
const title = useMemo(() => __pageCache.get(url), [url]);
|
||||||
return (
|
return (
|
||||||
<section>
|
<section className="mt-4">
|
||||||
<div className="font-medium italic">
|
<div className="font-medium italic">
|
||||||
<RainbowText
|
<RainbowText
|
||||||
className="flex items-center"
|
className="flex items-center"
|
||||||
animated={toolCall.result === undefined}
|
animated={toolCall.result === undefined}
|
||||||
>
|
>
|
||||||
<BookOutlined className={"mr-2"} />
|
<BookOutlined className={"mr-2"} />
|
||||||
<span>Reading </span>
|
<span>Reading</span>
|
||||||
<li className="flex w-fit gap-1 px-2 py-1 text-sm">
|
</RainbowText>
|
||||||
|
</div>
|
||||||
|
<div className="px-5">
|
||||||
|
<ul className="mt-2 flex flex-wrap gap-4">
|
||||||
|
<motion.li
|
||||||
|
className="text-muted-foreground flex h-40 w-40 gap-2 rounded-md bg-slate-100 px-2 py-1 text-sm"
|
||||||
|
initial={{ opacity: 0, y: 10, scale: 0.66 }}
|
||||||
|
animate={{ opacity: 1, y: 0, scale: 1 }}
|
||||||
|
transition={{
|
||||||
|
duration: 0.2,
|
||||||
|
ease: "easeOut",
|
||||||
|
}}
|
||||||
|
>
|
||||||
<FavIcon url={url} title={title} />
|
<FavIcon url={url} title={title} />
|
||||||
<a className="hover:underline" href={url} target="_blank">
|
<a href={url} target="_blank">
|
||||||
{title}
|
{title}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</motion.li>
|
||||||
</RainbowText>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user