code block copy button is always visible
hover-revealed means most people never find it, and touch has no hover at all. 70% white on the dark block, brightening on hover; the pre reserves right padding so a long first line scrolls up to the button instead of under it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -497,8 +497,11 @@ reasoned, not observed. Typecheck and the sidecar tests are clean.
|
||||
|
||||
The bubble's copy button copies the _whole reply_. When the reply is prose ending in one command you're
|
||||
meant to run, that's the wrong unit, and you end up selecting the line by hand — the one chore a command
|
||||
in a chat exists to save you. Fenced blocks now carry a button in their top-right corner. Hover-revealed
|
||||
on a pointer device, always visible on touch, because there is no hover there to reveal it with.
|
||||
in a chat exists to save you. Fenced blocks now carry a button in their top-right corner, **always
|
||||
visible** — a control you have to discover by waving the pointer at it is one most people never find, and
|
||||
on touch there is no hover to find it with at all. It sits at 70% white on the block's dark background
|
||||
and brightens on hover; the block reserves right padding for it, so a long first line scrolls up to the
|
||||
button rather than under it.
|
||||
|
||||
Inline `` `code` `` deliberately gets nothing: it's short enough to select, and a button per backticked
|
||||
word would be noise.
|
||||
|
||||
Reference in New Issue
Block a user