UI: one line code block ghost copy button
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.9k
- Forks
- 6.5k
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 29
Description
Description
in example the one line bash code block didn't have copy button which is useful in this case.
Why we remove tabs and button on bottom? Bascly took to much space.
Solution
Having a ghost button (mean visible on hover).
https://github.com/user-attachments/assets/9859ae75-1bea-4be7-872c-db201d3e4499
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"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked deprecations example and trace the code-block copy-button entry point used there. The change is done when one-line bash blocks retain a copy action that appears on hover, while the button does not add persistent visual space in cases where it is less useful.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, react, typescript
- Domain
- design, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 62/100