Skip to content

[Bug] Multi-line clipping highlight overlaps preceding text lines at 70% line spacing #893

Open

Description

@malv-ryx

Device

X4 Pro

Affected Version

v1.6.1

EPUB Optimization

No / Not Applicable

Cache State

No / Not Applicable

Describe the Bug

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.

Image

Steps to Reproduce

  1. Open a book in reader mode.
  2. Go to reader typography settings and set Line Spacing to 70%.
  3. Highlight/clip a passage of text that spans across two or more lines.
  4. Save the clipping and observe the highlight overlay on the reader page.
  5. 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.

File Provided

I've attached it

Relevant Log Output/Screenshots

Activity

  1. self-assigned this
    on Oct 30, 2026
  2. added a commit that references this issue on Oct 31, 2026
    d3b0c96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions