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>
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user