Skip to content

fix: preserve terminal icon while copying block commands - #114

Merged
LineIndent merged 1 commit into
LineIndent:mainfrom
elviskahoro:fix/copy-button-terminal-icon
Oct 21, 2026
Merged

LineIndent merged 1 commit into
LineIndent:mainfrom
elviskahoro:fix/copy-button-terminal-icon

Conversation

@elviskahoro

Copy link
Copy Markdown
Collaborator

The block-command copy button swapped the entire button's innerText to "Copied!", which wiped out the TerminalIcon SVG until the timeout restored the text.

Wraps the command text in a dedicated span and only swaps that span's text, so the icon stays visible throughout the copy feedback.

@LineIndent
LineIndent merged commit bd23d61 into LineIndent:main Oct 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants