Skip to content

fix: position codeblock copy buttons relative to their codeblock - #111

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

LineIndent merged 1 commit into
LineIndent:mainfrom
elviskahoro:fix/codeblock-copy-button-positioning

Conversation

@elviskahoro

Copy link
Copy Markdown
Collaborator

The copy buttons in chart_util_wrapper and file_codeblock are absolutely positioned, but their ancestors had no position: relative, so the buttons anchored to the page root instead of staying pinned to the codeblock.

Adds relative to the wrapper class names, matching the pattern already used in demo_wrapper.

Fixes copy buttons in chart_util_wrapper and file_codeblock being
absolutely positioned without a positioned ancestor, which caused
them to anchor to the page root instead of the codeblock. Matches
the pattern already used in demo_wrapper. Closes AI-342.
@LineIndent
LineIndent merged commit 7de81b3 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