A fork of https://github.com/crosspoint-reader/crosspoint-reader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: Reduce MIN_SIZE_FOR_POPUP to 10KB (#809)

Noticed that the Indexing... popup went missing despite 3-5 seconds
delay. Reducing to 10KB, so we get a popup for delays > ~2s.


### 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

authored by

Jonas Diemer and committed by
GitHub
f5b85f5c 7e93411f

+1 -1
+1 -1
lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp
··· 11 11 constexpr int NUM_HEADER_TAGS = sizeof(HEADER_TAGS) / sizeof(HEADER_TAGS[0]); 12 12 13 13 // Minimum file size (in bytes) to show indexing popup - smaller chapters don't benefit from it 14 - constexpr size_t MIN_SIZE_FOR_POPUP = 50 * 1024; // 50KB 14 + constexpr size_t MIN_SIZE_FOR_POPUP = 10 * 1024; // 10KB 15 15 16 16 const char* BLOCK_TAGS[] = {"p", "li", "div", "br", "blockquote"}; 17 17 constexpr int NUM_BLOCK_TAGS = sizeof(BLOCK_TAGS) / sizeof(BLOCK_TAGS[0]);