Skip to content

Nested TOC items cannot be expanded correctly when the TOC list is long #1625

@KevinD9527

Description

@KevinD9527

Bug Description

When clicking a chapter button in the table of contents to switch chapters, the table of contents displays abnormally. Specific issues include: overlapping chapter titles, missing chapter entries, or misaligned entries (e.g., some titles shift left/right beyond the normal range).

Reproduction Steps:

  1. Open the app and navigate to content with a table of contents (e.g., a book or document with multiple chapters);
  2. Open the table of contents panel;
  3. Click any chapter button (other than the current chapter) to switch;
  4. Observe the display status of the table of contents after switching.

This issue is consistently reproducible and has not been fixed in multiple versions (verified in version 0.9.65 and earlier).

[screenshot 1: Screenshot of the table of contents displaying normally before switching chapters]
image
[screenshot 2: Screenshot of missing or misaligned entries in the table of contents after switching chapters]
image

Expected behavior

After switching chapters by clicking a chapter button in the table of contents, the table of contents should display normally: all chapter entries are clearly visible, with no overlapping or misalignment, and the current chapter (if designed to be highlighted) should be correctly highlighted.

Technical inputs

  • Operating System: iPadOS 18.5
  • Readest Version: 0.9.65

Additional notes: This issue persists across multiple versions, suggesting it may be related to the rendering logic of the table of contents component when chapter switching triggers a state update (e.g., the table of contents UI is not properly redrawn or positioned after switching).

Also, a special shoutout to the author—updates have been frequent lately, and it's clear how much care goes into this product. Great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions