Skip to content

HAR-10241 - fix: list items#771

Merged
harbournick merged 1 commit intodevelopfrom
artem-HAR-10241-v2
Aug 13, 2025
Merged

HAR-10241 - fix: list items#771
harbournick merged 1 commit intodevelopfrom
artem-HAR-10241-v2

Conversation

@artem-harbour
Copy link
Copy Markdown
Contributor

@artem-harbour artem-harbour commented Aug 13, 2025

Fixes - HAR-10241, HAR-10159 and HAR-10167.

See comment in linear (HAR-10241) before merging.

@artem-harbour artem-harbour self-assigned this Aug 13, 2025
@artem-harbour artem-harbour changed the title fix: list items HAR-10241 - fix: list items Aug 13, 2025
@artem-harbour artem-harbour marked this pull request as ready for review August 13, 2025 17:26
Comment thread packages/super-editor/src/core/commands/splitListItem.js
Comment thread packages/super-editor/src/extensions/list-item/ListItemNodeView.js
@harbournick harbournick requested a review from Copilot August 13, 2025 18:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes list item styling and behavior issues by implementing proper marker alignment based on text justification, adding line height support, and fixing text content handling in list splitting operations.

  • Implements marker positioning logic that handles both left and right text alignment
  • Adds line height extraction and application from text style marks
  • Removes marks length condition from list item splitting logic

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
ListItemNodeView.js Adds marker positioning constants, line height support, and refactors marker positioning with justification-aware handlers
list-numbering-helpers.js Extracts level justification data from list definitions
splitListItem.js Simplifies text content handling by removing marks length conditions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread packages/super-editor/src/extensions/list-item/ListItemNodeView.js
Comment thread packages/super-editor/src/extensions/list-item/ListItemNodeView.js
Comment thread packages/super-editor/src/extensions/list-item/ListItemNodeView.js
Comment thread packages/super-editor/src/extensions/list-item/ListItemNodeView.js
Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

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

LGTM

@harbournick harbournick merged commit 50666d3 into develop Aug 13, 2025
7 checks passed
@harbournick harbournick deleted the artem-HAR-10241-v2 branch August 13, 2025 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants