fix: fix untitled links

This commit is contained in:
Li Xin
2025-04-25 14:58:26 +08:00
parent 182ea3305b
commit 3dfd2d1824

View File

@@ -261,8 +261,12 @@ function CrawlToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
}}
>
<FavIcon className="mt-1" url={url} title={title} />
<a href={url} target="_blank">
{title}
<a
className="h-full flex-grow overflow-hidden text-ellipsis whitespace-nowrap"
href={url}
target="_blank"
>
{title ?? url}
</a>
</motion.li>
</ul>