fix(webui): restore and synchronize live activity sheen

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-14 16:25:12 +08:00
1 parent 2732e2b3ce
commit 2d62d99038
7 files changed
+83 -20

No files matched your search

@@ -59,21 +59,25 @@ export function ActivityStep({
formControlFocusClassName,
)}
>
<StreamingLabelSheen
active={active && animateLabel}
className={cn(
"min-w-0 flex-1 truncate font-medium",
tone === "error" ? "text-destructive/[0.78]" : "text-muted-foreground",
labelClassName,
)}
>
<span className={cn("flex min-w-0 flex-1 items-baseline", detail && "gap-2")}>
<StreamingLabelSheen
active={active && animateLabel}
className={cn(
"min-w-0 truncate font-medium",
detail ? "max-w-[70%] shrink-0" : "flex-1",
tone === "error" ? "text-destructive/[0.78]" : "text-muted-foreground",
labelClassName,
)}
>
{label}
</StreamingLabelSheen>
{detail ? (
<span className="flex min-w-0 items-baseline gap-2">
<span className="max-w-[70%] shrink-0 truncate">{label}</span>{" "}
<>
{" "}
<span className={cn("min-w-0 flex-1 truncate font-normal text-muted-foreground", detailClassName)}>{detail}</span>
</span>
) : label}
</StreamingLabelSheen>
</>
) : null}
</span>
</div>
);