Skip to content

fix(docs): prevent code block copy buttons from overflowing the page - #466

Merged
johnyanarella merged 1 commit into
mainfrom
topic/fix-docs-codeblock-overflow
Oct 27, 2026
Merged

johnyanarella merged 1 commit into
mainfrom
topic/fix-docs-codeblock-overflow

Conversation

@johnyanarella

@johnyanarella johnyanarella commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Style
    • Updated code block layout so positioned elements within a code block are anchored to that block. This may improve the placement of visual elements displayed inside documentation code examples.

Signed-off-by: John Yanarella <jyanarella@nvidia.com>
@coderabbitai

coderabbitai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 3a2b58d and b7ffb25.

Files selected for processing: 1
  • projects/site/src/_11ty/layouts/docs.css

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

Walkthrough

The documentation stylesheet sets .markdown-codeblock to position: relative.

Changes: Code block positioning

Layer / File(s) Summary
Set code block positioning context
projects/site/src/_11ty/layouts/docs.css
The .markdown-codeblock rule now includes position: relative.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: Minimal · up to b7ffb

No actionable merge-blocking risk remains.

Pre-merge checks: Passed 4
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: preventing code block copy buttons from overflowing the page.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

projects/site/src/_11ty/layouts/docs.css

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.

Comment @coderabbitai help to get the list of available commands.

@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage/vitest

main 3a2b58d topic/fix-docs-codeb... b7ffb25 +/-
99% 99% 0%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@johnyanarella
johnyanarella merged commit 6972e4b into main Oct 27, 2026
17 checks passed
@johnyanarella
johnyanarella deleted the topic/fix-docs-codeblock-overflow branch October 27, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants