Paginate book list and avoid out of bounds rendering (#86)

## Summary

* Paginate book list
* Avoid out of bounds rendering of long book titles, truncate with
ellipsis instead

## Additional Context

* Should partially help with
https://github.com/daveallie/crosspoint-reader/issues/75 as it was
previously rendering a lot of content off screen, will need to test with
a large directory
This commit is contained in:
Dave Allie
2025-12-21 17:12:53 +11:00
committed by GitHub
parent f264efdb12
commit b73ae7fe74
2 changed files with 38 additions and 15 deletions

View File

@@ -5,8 +5,10 @@
#include "config.h"
namespace {
constexpr int PAGE_ITEMS = 24;
constexpr int SKIP_PAGE_MS = 700;
} // namespace
void EpubReaderChapterSelectionActivity::taskTrampoline(void* param) {
auto* self = static_cast<EpubReaderChapterSelectionActivity*>(param);