Skip to content

fix(render): post media above its quote; View on X in each card header (v1.6.12) - #90

Merged
wolfgang-aura merged 3 commits into
mainfrom
fix/quote-card-layout
Oct 18, 2026
Merged

wolfgang-aura merged 3 commits into
mainfrom
fix/quote-card-layout

Conversation

@wolfgang-aura

@wolfgang-aura wolfgang-aura commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Two layout bugs the owner hit on the hibtc37 quote-chain capsule.

#88: a post's own images rendered after all the quotes. applySyndicationDataToSegment spliced recovered media and link cards at the end of the segment, which is after the quote card. Rebuilt quote cards still go last; everything else now goes above the post's first quote, matching X's text, media, card, quote order. Regression test in test/dom.test.mjs.

#89: six identical "View on X" links stacked at the bottom of a deep chain. Each card's time and permalink were a footer rendered after its nested quotes, so the links came out innermost first with nothing tying them to a card. They now sit in a meta row directly under each card's author line (View on X ↗ · time), so each link is next to the handle it belongs to. (The first commit message says the link names the handle; it does not, since the author line right above already shows it. The CHANGELOG is correct.) test/quote-chain.test.mjs asserts the permalinks read outermost first in document order.

Second commit bumps to v1.6.12 so Tampermonkey picks it up.

Verification so far:

  • npm test, lint and format check pass locally.
  • Seen in a screenshot: real syndication data for the 7-post chain rendered at 1280 (dark) and 375 (light). Images sit above the quote, each card carries its own link under the author, and the 375 page has no horizontal scroll (scrollWidth 375).
  • Not yet live-verified through a real export; that follows the merge.

Fixes #88
Fixes #89

🤖 Generated with Claude Code

wolfgang-aura and others added 3 commits October 18, 2026 22:21
…ch card header

Syndication-recovered images and link cards were spliced at the end of the segment,
after the quote card, so a post's own photos rendered below the whole quote chain.
They now go above the post's first quote; rebuilt quote cards still go last (#88).

Each quote card's time and View on X link sat in a footer after its nested quotes, so
a 6-level chain ended in six stacked links with no way to tell them apart. They now
sit in a meta row under each card's author, and the link names the handle (#89).

Fixes #88
Fixes #89

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ships the #88 media-order and #89 quote-header fixes to installed userscripts, which
update only on a @Version change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…peat the handle

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wolfgang-aura
wolfgang-aura merged commit 31f571e into main Oct 18, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Nested quote cards stack their 'View on X' links at the bottom Recovered media renders below the post's quote card

1 participant