Skip to content

Commit

Permalink
Fix blockquote ribbon position
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Oct 18, 2024
1 parent c4a4919 commit 78102f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apple/BlockquoteTextLayoutFragment.mm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ - (CGRect)ribbonRect {
fragmentTextBounds = CGRectUnion(fragmentTextBounds, lineFragmentBounds);
}
}
fragmentTextBounds.origin.x -= _markdownUtils.markdownStyle.blockquoteMarginLeft + _markdownUtils.markdownStyle.blockquoteBorderWidth + _markdownUtils.markdownStyle.blockquotePaddingLeft;
fragmentTextBounds.origin.x -= _markdownUtils.markdownStyle.blockquoteBorderWidth + _markdownUtils.markdownStyle.blockquotePaddingLeft;
fragmentTextBounds.size.width = _markdownUtils.markdownStyle.blockquoteBorderWidth;
// TODO: draw multiple ribbons for nested blockquotes
return fragmentTextBounds;
Expand Down

0 comments on commit 78102f5

Please sign in to comment.