Xteink-X4-crosspoint-reader/src
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
..
activities fix: truncate chapter names that are too long (#422) 2026-01-19 13:01:51 +00:00
images Move to SDK EInkDisplay and enable anti-aliased 2-bit text (#5) 2025-12-08 19:48:49 +11:00
network Update OTA updater URL 2026-01-14 23:14:00 +11:00
util Fixes issue with Calibre web expecting SSL (#347) 2026-01-14 11:54:14 +00:00
Battery.h Public release 2025-12-03 22:06:45 +11:00
CrossPointSettings.cpp feat: dict based Hyphenation (#305) 2026-01-19 12:56:26 +00:00
CrossPointSettings.h feat: dict based Hyphenation (#305) 2026-01-19 12:56:26 +00:00
CrossPointState.cpp Ensure new custom sleep image every time (#300) 2026-01-14 21:05:08 +11:00
CrossPointState.h Ensure new custom sleep image every time (#300) 2026-01-14 21:05:08 +11:00
fontIds.h Swap from Aleo to Bookerly for wider glyph support (#172) 2025-12-31 02:28:25 +11:00
main.cpp Adds KOReader Sync support (#232) 2026-01-19 11:55:35 +00:00
MappedInputManager.cpp Add button mapping for Left, Back, Confirm, Right (#173) 2025-12-31 02:46:35 +11:00
MappedInputManager.h Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
ScreenComponents.cpp Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
ScreenComponents.h Add option to hide battery percentage. (#297) 2026-01-12 20:53:58 +11:00
WifiCredentialStore.cpp Add exFAT support (#150) 2025-12-30 16:09:30 +11:00
WifiCredentialStore.h Add connect to Wifi and File Manager Webserver (#41) 2025-12-20 01:05:43 +11:00