Skip to content

fix: vertically center checkbox text in note task lists - #143

Merged
h4yfans merged 3 commits into
mainfrom
fix/checkbox-alignment
Apr 5, 2026
Merged

fix: vertically center checkbox text in note task lists#143
h4yfans merged 3 commits into
mainfrom
fix/checkbox-alignment

Conversation

@h4yfans

@h4yfans h4yfans commented Apr 5, 2026

Copy link
Copy Markdown
Collaborator

What

Fix checkbox and text vertical misalignment in BlockNote editor task lists.

Why

Checkboxes rendered at the top while text sat at the bottom — caused by BlockNote's flex container defaulting to align-items: stretch instead of center.

How

Added align-items: center to .bn-block-content[data-content-type='checkListItem'] in base.css. Single CSS rule override on the third-party editor styles.

Type

  • fix — bug fix

Test plan

  • Manual testing (describe below)

Verified checkbox and text align on the same vertical center line in the note editor with HMR.

Checklist

  • Self-reviewed the diff
  • No hardcoded secrets or credentials
  • Files stay under ~500 LOC
  • Follows immutable data patterns

@h4yfans
h4yfans merged commit 498a294 into main Apr 5, 2026
2 checks passed
@h4yfans
h4yfans deleted the fix/checkbox-alignment branch April 5, 2026 10:42
h4yfans added a commit that referenced this pull request May 6, 2026
fix: vertically center checkbox text in note task lists
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