fix(web): show message copy buttons on touch devices (#11020)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
mariaandClaude Opus 5 authored and GitHub committed 2026-09-09 23:25:23 -03:00
1 parent addfb1390e
commit 385cc0a4c6
1 file changed
+2 -2
@@ -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,
)}
>