Skip to content

Better way to align task items - #215

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Oct 23, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The cap-height offset needs a fallback for the configured Safari 16 target.

1 open issue
What changed in this PR

This PR adjusts task checkbox alignment in the editor’s hidden-syntax mode to follow the text’s cap height rather than a fixed line-height slot.

Changes:

  • Uses baseline-aligned controls and cap-height positioning.
  • Places the checkbox control before the hidden list marker.
  • Updates style assertions and the lite bundle.
File Description
tests/​hiddenSyntax/​unorderedList.test.ts Checks the new positioning rules and DOM order.
src/​hiddenSyntax/​components/​task.ts Implements cap-height checkbox alignment.
dist/​lite/​markedit-preview.js Includes the updated task checkbox implementation.

Review effort: Balanced

Comment thread src/hiddenSyntax/components/task.ts Outdated
@cyanzhong
cyanzhong force-pushed the develop branch 2 times, most recently from 357af0a to e2e66f2 Compare October 23, 2026 08:39
@cyanzhong
cyanzhong merged commit f04ea6e into main Oct 23, 2026
1 check passed
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.

2 participants