Xteink-X4-crosspoint-reader/src/activities
GenesiaW 6d68466891
Some checks failed
CI / build (push) Has been cancelled
fix: truncate chapter names that are too long (#422)
## Summary

* **What is the goal of this PR?** (e.g., Implements the new feature for
file uploading.)
- Implements a fix to truncate chapter names that exceeds display width
 
* **What changes are included?**
- Implements a fix to truncate chapter names that exceeds display width
## Additional Context

* Add any other information that might be helpful for the reviewer
(e.g., performance implications, potential risks,
  specific areas to focus on).
- Prior to the fix, if the book contains multiple chapters with names
longer than the display width, there is a noticeable delay when
scrolling through the list of chapters.

Serial output of the issue:
```
[25673] [ACT] Entering activity: EpubReaderChapterSelection
[25693] [GFX] !! Outside range (485, 65) -> (65, -6)
[25693] [GFX] !! Outside range (486, 65) -> (65, -7)
[25693] [GFX] !! Outside range (487, 65) -> (65, -8)
[25693] [GFX] !! Outside range (488, 65) -> (65, -9)
[25693] [GFX] !! Outside range (485, 66) -> (66, -6)
[25693] [GFX] !! Outside range (486, 66) -> (66, -7)
[25694] [GFX] !! Outside range (487, 66) -> (66, -8)
[25694] [GFX] !! Outside range (484, 67) -> (67, -5)
[25694] [GFX] !! Outside range (485, 67) -> (67, -6)
[25694] [GFX] !! Outside range (486, 67) -> (67, -7)
[25694] [GFX] !! Outside range (483, 68) -> (68, -4)
[25694] [GFX] !! Outside range (484, 68) -> (68, -5)
[25694] [GFX] !! Outside range (485, 68) -> (68, -6)
``` 


---

### AI Usage

While CrossPoint doesn't have restrictions on AI tools in contributing,
please be transparent about their usage as it
helps set the right context for reviewers.

Did you use AI tools to help write this code? _**NO**_

Co-authored-by: Dave Allie <dave@daveallie.com>
2026-01-19 13:01:51 +00:00
..
boot_sleep Add TXT file reader support (#240) 2026-01-14 21:36:40 +11:00
browser fix: Wi-Fi Selection on Calibre Library launch (#313) 2026-01-12 21:49:42 +11:00
home fix: Invert colors on home screen cover overlay when recent book is selected (#390) 2026-01-19 22:57:39 +11:00
network feat: Add MAC address display to WiFi Networks screen (#381) 2026-01-15 23:26:39 +11:00
reader fix: truncate chapter names that are too long (#422) 2026-01-19 13:01:51 +00:00
settings feat: dict based Hyphenation (#305) 2026-01-19 12:56:26 +00:00
util feat: Change keyboard "caps" to "shift" & Wrap Keyboard (#377) 2026-01-19 22:50:34 +11:00
Activity.h Prevent device sleep during WiFi file transfer and OTA updates (#203) 2026-01-02 17:44:17 +11:00
ActivityWithSubactivity.cpp Give activities names and log when entering and exiting them (#92) 2025-12-21 21:17:00 +11:00
ActivityWithSubactivity.h Support swapping the functionality of the front buttons (#133) 2025-12-29 14:59:14 +11:00