mirror of
https://github.com/Andre-Bzk/rin-mobile-userscript.git
synced 2026-11-15 09:33:08 +01:00
feat: mark the boundary between forums and topics in the list view
A forum page carries its subforums and its topics in tables of their own, each with a header. Rebuilding the page into one stream of cards dissolves that separation: both kinds render identically, so where the subforums end and the topics begin was no longer visible, and a single card gave no hint whether tapping it opens a forum or a thread. A header naming the kind and its count is therefore inserted wherever the kind changes, and forum cards are tinted and edged. Directly below a category heading the header is suppressed — on the forum root that heading already introduces the forums under it, and repeating the kind there adds a strip per category for nothing. Counting requires knowing how many cards a block actually yields, which is not the number of rows: rows that turn out to be layout or fail conversion drop out. The cards are therefore built completely before any of them is emitted.
This commit is contained in:
@@ -65,6 +65,12 @@ verschwindet und nur die Beschreibung bleibt als `.rm-last` uebrig. Genau so
|
||||
war es vor 3.2. Brotkrumen und „Mark forums read" verlinken ebenfalls Foren,
|
||||
stehen aber in Zeilen ohne Forenmerkmale und werden verworfen.
|
||||
|
||||
**Der Gruppenkopf entfaellt hinter einer Kategoriezeile.** Sonst stuende auf
|
||||
der Forenwurzel unter jeder Kategorie noch ein „FOREN n" — die Kategorie leitet
|
||||
die Foren darunter bereits ein. Die Karten werden deshalb erst vollstaendig
|
||||
gebaut und dann ausgegeben: die Anzahl im Kopf steht erst fest, wenn feststeht,
|
||||
welche Zeilen ueberhaupt eine Karte hergeben.
|
||||
|
||||
**Das Seitengeruest ist selbst eine Tabelle.** `closest('tr')` liefert fuer
|
||||
einen Link ausserhalb einer Listenzeile die Layoutzeile, die die ganze Seite
|
||||
enthaelt. Ohne Bremse wurde daraus eine Karte mit dem kompletten Seitentext —
|
||||
|
||||
Reference in New Issue
Block a user