Skip to content

Conversation

@VladaHarbour
Copy link
Contributor

No description provided.

@VladaHarbour VladaHarbour self-assigned this Jan 26, 2026
@linear
Copy link

linear bot commented Jan 26, 2026

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 525f52e584

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 1597 to 1601
const spacingBefore = (paraBlock.attrs as { spacing?: { before?: number } } | undefined)?.spacing
?.before;
if (typeof spacingBefore === 'number' && spacingBefore > 0) {
height += spacingBefore;
}

Choose a reason for hiding this comment

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

P2 Badge Offset selection rects for spacing.before

Here you add spacing.before into the paragraph height, but the per-line Y position in selectionToRects is still based on blockTopCursor without that spacing. That means when a table cell paragraph has positive spacing.before and the selection is within that paragraph, the highlight rects are drawn too high by the spacing amount (only subsequent blocks are shifted). Consider adding spacing.before to blockTopCursor (or the line offset) when the rendered range starts at line 0 so the selection rects match the new render position.

Useful? React with 👍 / 👎.

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