TypeScript
fix(web): show message copy buttons on touch devices (#11020)
maria385cc0a4c669
diff --git a/apps/web/src/components/chat/MessagesTimeline.tsx b/apps/web/src/components/chat/MessagesTimeline.tsxindex 8e9635f89e4..7764f64ea4b 100644--- a/apps/web/src/components/chat/MessagesTimeline.tsx+++ b/apps/web/src/components/chat/MessagesTimeline.tsx@@ -1582,7 +1582,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"markdownCwd={ctx.markdownCwd}/></div>- <div className="flex w-full max-w-[80%] items-center justify-end pe-1 text-xs tabular-nums opacity-0 transition-opacity duration-200 focus-within:opacity-100 group-hover:opacity-100">+ <div className="flex w-full max-w-[80%] items-center justify-end pe-1 text-xs tabular-nums opacity-0 transition-opacity duration-200 pointer-coarse:opacity-100 focus-within:opacity-100 group-hover:opacity-100"><div className="flex shrink-0 items-center gap-2"><Tooltip><TooltipTrigger render={<p className="text-muted-foreground text-xs tabular-nums" />}>@@ -1734,7 +1734,7 @@ function AssistantMessageMeta({"flex items-center gap-2 text-xs tabular-nums transition-opacity duration-200",alwaysVisible? "opacity-100"- : "opacity-0 focus-within:opacity-100 group-hover/assistant:opacity-100",+ : "opacity-0 pointer-coarse:opacity-100 focus-within:opacity-100 group-hover/assistant:opacity-100",className,)}>