Skip to content

fix(editor): align heading block controls - #653

Merged
murongg merged 1 commit into
v2from
fix/650-heading-control-alignment
Aug 8, 2026
Merged

fix(editor): align heading block controls#653
murongg merged 1 commit into
v2from
fix/650-heading-control-alignment

Conversation

@murongg

@murongg murongg commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • align heading block tools and level controls with each heading text row
  • reserve separate two-slot and three-slot gutter layouts for terminal and foldable headings
  • add regression coverage for H1-H6 control offsets and fold-state specificity

Why

Terminal headings have no foldable range, so fold-state selectors did not apply their control offsets. This left controls vertically misaligned and allowed the drag handle to overlap the heading-level button.

Validation

  • pnpm --filter @markra/app test — 130 files and 1490 tests passed
  • pnpm --filter @markra/app build — passed
  • Browser QA — terminal H1 controls have an 8px horizontal gap; foldable H1 controls have 8px and 6px gaps; vertical center delta is under 1px

Risk

Low. The change is limited to visual-editor heading control CSS and stylesheet regression tests.

Closes #650

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
markra-web Ready Ready Preview Aug 7, 2026 9:42am

@murongg
murongg merged commit a0b49b5 into v2 Aug 8, 2026
21 checks passed
@murongg
murongg deleted the fix/650-heading-control-alignment branch August 8, 2026 00:03
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.

[Bug]: 标识不对齐

1 participant