Skip to content

UI: one line code block ghost copy button #9085

Description

@AugustinMauroy

Description

in example the one line bash code block didn't have copy button which is useful in this case.

Image

Why we remove tabs and button on bottom? Bascly took to much space.

Solution

Having a ghost button (mean visible on hover).

Enregistrement.de.l.ecran.2026-08-05.a.22.09.55.mov

But there are still case where button is useless IMO. here for example have copy button isn't really usefull but when user will hover it button will appear so it's take "mental/visual ressource"

Image

Activity

  1. avivkeller commented on Aug 5, 2026

    @avivkeller
    Member

    iirc we intentionall removed it since we felt it took up space for something that could be easier copied by hand, but I'm happy to reconsider if others want to change it

  2. bmuenzenmeyer commented on Aug 5, 2026

    @bmuenzenmeyer
    Contributor

    i think it'd be a nice touch, but i've also gotten used to triple-clicking in moments like this

  3. codebyanas commented on Sep 9, 2026

    @codebyanas

    Hi @avivkeller @AugustinMauroy,

    I can implement the ghost copy button (visible on hover) for single-line code blocks so it doesn't take up persistent UI space.

    If there is a consensus to move forward with this UX improvement, please let me know so I can get started on the PR.

  4. AugustinMauroy commented on Sep 9, 2026

    @AugustinMauroy
    MemberAuthor

    Yeah you can go ahead and opens an pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions