Skip to content

fix(editor): remove duplicate InsertCodeBlock toolbar button#566

Merged
jmynes merged 1 commit into
mainfrom
fix/duplicate-insert-code-block
Jun 8, 2026
Merged

fix(editor): remove duplicate InsertCodeBlock toolbar button#566
jmynes merged 1 commit into
mainfrom
fix/duplicate-insert-code-block

Conversation

@jmynes

@jmynes jmynes commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Summary

In PR #565 I added an `` button next to ``, not realizing that `ResponsiveCodeToggle` already renders `` on desktop (right of the inline-code toggle). Result: the toolbar showed two identical buttons. Removed the redundant one.

PUNT-416 still tracks making ``` typing trigger code blocks directly.

Test plan

  • `pnpm lint` clean
  • CI passes
  • Manual UI check: only one code-block button visible in the editor toolbar

🤖 Generated with Claude Code

ResponsiveCodeToggle already renders InsertCodeBlock on desktop (right of
the inline-code toggle), so adding another one next to InsertThematicBreak
gave us two buttons in the toolbar. Removed the extra.

PUNT-416 still tracks making ``` typing trigger code blocks directly.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jmynes jmynes merged commit 425f3d9 into main Jun 8, 2026
2 checks passed
@jmynes jmynes deleted the fix/duplicate-insert-code-block branch June 8, 2026 23:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 8, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant