style(codeblocks): align all copy buttons to the top-right - #742
Merged
Conversation
The mermaid and markmap copy buttons sat top-left while the tree's sat top-right, so the three codeblocks disagreed on placement. Top-right matches Obsidian's own convention for code blocks. Only the copy buttons move. The markmap zoom/fit toolbar stays in the bottom-right — it's a separate control group and doesn't collide.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #740. That PR unified the mechanism the three codeblocks use to position their buttons, but left mermaid and markmap visually top-left while the tree moved to top-right — so the look still wasn't unified.
Change
top-2 right-2left-2 top-2top-2 right-2left-2 top-2top-2 right-2bottom-2 right-2Top-right also matches Obsidian's own convention for code blocks.
Only the copy buttons move. The markmap toolbar stays bottom-right — separate control group, no collision with the copy button now above it.
left-2is no longer used anywhere in the plugin (verified: 0 occurrences in the compiledstyles.css).bun run build && bun run testpass (379 tests, 0 type errors, svelte-check 0/0).