Skip to content

Commit 515ee1f

Browse files
committed
fix(web): keep detached assistant metadata visible
1 parent 3cf2ce7 commit 515ee1f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎apps/web/src/components/chat/MessagesTimeline.tsx‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1480,6 +1480,7 @@ function AssistantMetaTimelineRow({
14801480
message={row.message}
14811481
showCopyButton={row.showAssistantCopyButton}
14821482
copyStreaming={row.assistantCopyStreaming}
1483+
alwaysVisible
14831484
/>
14841485
</div>
14851486
);
@@ -1490,18 +1491,23 @@ function AssistantMessageMeta({
14901491
message,
14911492
showCopyButton,
14921493
copyStreaming,
1494+
alwaysVisible = false,
14931495
}: {
14941496
className?: string;
14951497
message: ChatMessage;
14961498
showCopyButton: boolean;
14971499
copyStreaming: boolean;
1500+
alwaysVisible?: boolean;
14981501
}) {
14991502
const ctx = use(TimelineRowCtx);
15001503

15011504
return (
15021505
<div
15031506
className={cn(
1504-
"flex items-center gap-2 text-xs tabular-nums opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover/assistant:opacity-100",
1507+
"flex items-center gap-2 text-xs tabular-nums transition-opacity duration-200",
1508+
alwaysVisible
1509+
? "opacity-100"
1510+
: "opacity-0 focus-within:opacity-100 group-hover/assistant:opacity-100",
15051511
className,
15061512
)}
15071513
>

0 commit comments

Comments
 (0)