You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Multi-line clipping highlight overlaps preceding text lines at 70% line spacing #893
When reader line spacing is set to 70%, multi-line text clippings/highlights fail to render continuously across lines.
Instead of wrapping cleanly around the selected passage, the highlight box breaks into individual line segments that shift upward and overlay the preceding lines of text, resulting in misaligned, overlapping highlight blocks on tight line-spacing layouts.
Steps to Reproduce
Open a book in reader mode.
Go to reader typography settings and set Line Spacing to 70%.
Highlight/clip a passage of text that spans across two or more lines.
Save the clipping and observe the highlight overlay on the reader page.
Notice that each line's highlight background is vertically misaligned and overlaps the line preceding it.
Expected Behavior
Clipping highlights should scale dynamically with line-height settings, aligning precisely behind each corresponding line of text without shifting upward or overlapping adjacent text lines.
Activity
fix: keep clipping highlights aligned at tight line spacing (fixes #893)