Make "Copy Code" button always visible
Currently when you have a code div that scrolls off the screen, you have to scroll to the top to click the "Copy Code" button. I like how ClaudeAI has it where the "Copy" button is always visible, regardless of the height of the code div.

Log in to comment and vote
Comments4
Chocolate Melon
Aug 9, 2024
Love the implementation. Well done!
Aug 9, 2024
Rose Beaver
Aug 7, 2024
Also please make sure the copy-button doesn't overlap any code, obscuring it.
This especially can be annoying with (long) one-line code blocks.
Easy fix would be to add some padding to the end of the code line. So you can scroll 'past' the code and the button just overlaps the padding.
Aug 5, 2024