fix(webui): restore and synchronize live activity sheen
This commit is contained in:
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>
|
||||
);
|
||||
|
||||
|
||||
@@ -39,8 +39,10 @@ export function ThinkingReasoningShell({
|
||||
{active ? <path className="activity-current-trace" pathLength={100} d="M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2" /> : null}
|
||||
</Activity>
|
||||
<span
|
||||
data-sheen-text={active ? label : undefined}
|
||||
className={cn(
|
||||
"min-w-0 truncate text-[12px] font-normal leading-4 text-muted-foreground/65",
|
||||
active && "streaming-text-sheen",
|
||||
)}
|
||||
>
|
||||
{label}
|
||||
|
||||
Reference in new issue
Block a user