Skip to main content

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.

Status: Completed4 comments

Log in to comment and vote

Comments4

  • Chocolate Melon

    •

    Aug 9, 2024

    Love the implementation. Well done!

  • Ngoc Nguyen changed status to Completed
    Team•

    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.

  • Tony Dinh changed status to Planned
    Team•

    Aug 5, 2024