(Reported by @StanFromIreland on Discord)
The new copy button can sometimes cover part of the source code: https://docs.python.org/dev/library/string.html#format-examples
We can fix this by making the copy button appear only when hovered.
Please don't pick up this issue, I'd like to reserve it for someone at the PyConUS sprints :)
You should probably add it to the project, I doubt many will check this issue tracker.
Please keep it possible to copy from a touchscreen. It might be better to add padding-right, so users can scroll past the button.
It might be better to add padding-right, so users can scroll past the button.
That would be good, but to indicate there is text behind it making it somewhat transparent too would be nice IMO.
The example given on discord (https://pradyunsg.me/furo/kitchen-sink/blocks/#literal-blocks) allows that by first tapping on the codeblock (probably some :active/:focus CSS rule) which I think is also fine, but a padding would work too
I'm taking a look
I fixed the issue in this PR. I decided to go with the hover approach, I think it looks better than the padding-right
Thanks!
Activity
StanFromIreland commented on May 19, 2025
You should probably add it to the project, I doubt many will check this issue tracker.
encukou commented on May 19, 2025
Please keep it possible to copy from a touchscreen.
It might be better to add padding-right, so users can scroll past the button.
StanFromIreland commented on May 19, 2025
That would be good, but to indicate there is text behind it making it somewhat transparent too would be nice IMO.
tomasr8 commented on May 19, 2025
The example given on discord (https://pradyunsg.me/furo/kitchen-sink/blocks/#literal-blocks) allows that by first tapping on the codeblock (probably some :active/:focus CSS rule) which I think is also fine, but a padding would work too
kevteg commented on May 20, 2025
I'm taking a look
kevteg commented on May 21, 2025
I fixed the issue in this PR. I decided to go with the hover approach, I think it looks better than the padding-right
hugovk commented on May 27, 2025
Thanks!