Add an infinite/page toggle with a pager
This commit is contained in:
+6
-1
@@ -184,7 +184,12 @@ that deletion is irreversible. The delete button is disabled for a 5 second coun
|
||||
can take its place while the hidden one stays resumable. The strip text turns red and reads
|
||||
`API limited, retry in Ns` while Discord throttles media traffic, and a translucent
|
||||
`N scrapes completed` line appears when scrapes finish — it lives until the tab is reloaded. Each
|
||||
row shows `X/Yp (~Z%)` when the search total is known. The grid streams: appending a page inserts
|
||||
row shows `X/Yp (~Z%)` when the search total is known. A flippy toggle switches the grid
|
||||
between **Infinite** (the default stream) and **Page** mode. In page mode only one page of
|
||||
`pageSize` items is shown; sorting/filters are deterministic, so the same filter plus page
|
||||
number returns the same content later. The pager shows `Prev`, an editable page number,
|
||||
` / total`, and `Next`; scrolling to the bottom advances one page, but only after a 2 s cooldown
|
||||
from the last load. The grid streams: appending a page inserts
|
||||
only the new cards, so loaded images never rebuild or flash, and a stream **buffer** below the last
|
||||
row keeps the scroll alive while the next page is in flight. The buffer is capped at 1.5 viewport
|
||||
heights, shrinks as the filtered results run out, and says `Loading more…` / `Scroll for more` /
|
||||
|
||||
Reference in New Issue
Block a user