Skip to content

v1.5.6

Choose a tag to compare

@twalichiewicz twalichiewicz released this 31 Jul 17:46
· 104 commits to main since this release
Immutable release. Only release title and notes can be modified.
62b1eb1

v1.5.6

Navigation (#35)

  • The discussion lookup ran once, at load. On sites that navigate without reloading the first answer stuck until a manual refresh: a page that had been posted stayed grey, a page that never was stayed orange.
  • Navigation is now detected and the page re-evaluated, landing wherever a fresh load of that URL would have. Three signals feed one debounced check: patched history (instant, but silently dropped by some managers' sandboxes), popstate (back/forward only), and a poll (catches the rest).
  • Fragments, tracking parameters, and push bursts that end where they started are all still the same page, and leave the sidebar alone.
  • init splits into one-time setup and a repeatable per-URL pass. openSidebar hands back its in-flight run, so a navigation can cancel a render and wait for it to unwind rather than replacing surfaces mid-write.

Comment width (#37)

  • A comment's text had no line length of its own and ran to whatever width the panel had been dragged to. Now capped at 1215px.
  • The cap is on the text and nothing else. .children sits beside a comment's text rather than around it, so a reply starts further right and gets the full measure again.
  • The composer keeps its own 720px, sized to an input rather than to reading.

Story text

  • A story's opening paragraph ran straight into the one below it. HN never wraps the first paragraph, instead emitting bare text and wrapping only what follows, so a rule zeroing the top margin of p:first-child was never matching the first paragraph. It matched the second, and closed a gap that belonged there. The comment renderer takes the same markup and never had the rule.