fix(webui): keep search activity summaries on one line

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-18 01:45:53 +08:00
1 parent c91e2bd553
commit 7edd377352
3 files changed
+90 -2

No files matched your search

@@ -830,7 +830,7 @@ function ActivityTraceRow({
tone={status === "error" ? "error" : status === "done" ? "success" : "active"}
label={trace.kind === "search" ? trace.label : formatActivityTarget(t, trace.label, trace.detail)}
detail={trace.kind === "search" ? trace.detail : trace.aside}
detailClassName={trace.kind === "search" ? "whitespace-pre-line" : undefined}
labelClassName={trace.kind === "search" && trace.detail ? "max-w-[50%]" : undefined}
/>
);
}
@@ -25,7 +25,7 @@ export function WebSearchRun({ run, turnActive }: { run: WebSearchRunModel; turn
tone={status === "error" ? "error" : status === "done" ? "success" : "active"}
label={presentation.label}
detail={presentation.detail}
detailClassName="whitespace-pre-line"
labelClassName={presentation.detail ? "max-w-[50%]" : undefined}
/>
{run.sources.map((source) => (
<WebActivityRow