fix: use the same height of placeholders

This commit is contained in:
Li Xin 2025-04-19 12:28:08 +08:00
parent ff3fabecf7
commit 8f8a6add71

View File

@ -159,8 +159,7 @@ function WebSearchToolCall({ toolCall }: { toolCall: ToolCallRuntime }) {
[...Array(6)].map((_, i) => ( [...Array(6)].map((_, i) => (
<li <li
key={`search-result-${i}`} key={`search-result-${i}`}
className="flex w-40 gap-2 rounded-md text-sm" className="flex h-40 w-40 gap-2 rounded-md text-sm"
style={{ height: i >= 3 ? 160 : 108 }}
> >
<Skeleton className="h-full w-full rounded-md bg-gradient-to-tl from-slate-50 to-slate-200" /> <Skeleton className="h-full w-full rounded-md bg-gradient-to-tl from-slate-50 to-slate-200" />
</li> </li>