Skip to content

Fix double window chrome on code blocks#13

Merged
everettjf merged 1 commit into
masterfrom
fix/code-card-double-chrome
Jun 2, 2026
Merged

Fix double window chrome on code blocks#13
everettjf merged 1 commit into
masterfrom
fix/code-card-double-chrome

Conversation

@everettjf

Copy link
Copy Markdown
Owner

kramdown wraps code in both <div class="highlight"> and <pre class="highlight">, so the panel chrome (title bar + traffic-light dots) and the copy button rendered twice per block (visible as a doubled window frame on the home code card and every code block). Scopes the chrome to div.highlight and attaches the copy button only to the container div.

Verified: each block now renders one container + one pre (no nested frame); site builds clean locally.

🤖 Generated with Claude Code

kramdown emits both <div class="highlight"> and <pre class="highlight">, so the
panel chrome (title bar, traffic-light dots) and the copy button were applied to
both — stacking two window frames per code block. Scope the chrome CSS to
div.highlight and attach the copy button only to the container div.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@everettjf everettjf merged commit 3a0b958 into master Jun 2, 2026
4 checks passed
@everettjf everettjf deleted the fix/code-card-double-chrome branch June 2, 2026 04:31
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