Skip to content

cc-dazzle: copy buttons on hover, as a setting - #76

Merged
vdsmon merged 1 commit into
mainfrom
feat/dazzle-hover-copy
Oct 15, 2026
Merged

vdsmon merged 1 commit into
mainfrom
feat/dazzle-hover-copy

Conversation

@vdsmon

@vdsmon vdsmon commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Copy buttons sit beside every code block, table, list and quote, and they take room even when you do not need them. Upstream prismantis added a setting that shows them only on hover, and this ports it.

What changes

  • New setting "Copy buttons" in /config, inline (the default, as today) or hover.
  • With hover, a block's buttons float over its top-right corner and show only while the pointer is over the block. They take no space and move nothing when they show.
  • A block narrower than its buttons keeps their width free beside it, so a table drawn next to it never covers them.
  • The phone app has no pointer, so it always draws the buttons inline.

Tested

mise run verify and mise run test:dazzle pass, with the upstream tests ported.

Ported from prismantis 0.20.0 (#140). The new Copy buttons setting picks inline (the default) or hover. With hover, a block's buttons float over its top-right corner, out of the flow, and show only while the pointer is over the block. A narrow block keeps their width free beside it. The phone app, which has no pointer, draws them inline.
@vdsmon
vdsmon merged commit 8e8653f into main Oct 15, 2026
1 check passed
@vdsmon
vdsmon deleted the feat/dazzle-hover-copy branch October 15, 2026 19:40
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.

1 participant