fix(whatsnew): group each release in a section so sticky headers stop overlapping

All changelog h1 headers pinned to top: 0 inside the whole scroll container and
never unstuck, so a shorter title painted over a taller neighbour and its
lower lines peeked out underneath. Confining each sticky header to its own
<section class="whatsnewRelease"> makes the next release push the previous
header away cleanly, no matter each title's height.
This commit is contained in:
SethBurkart123 committed 2026-10-29 10:24:52 +11:00
1 parent efa4f8b85c
commit 29bdb0064d
1 file changed
+2 -2
+2 -2
View File
@@ -530,6 +530,6 @@ export const WHATS_NEW_CHANGELOG: WhatsNewRelease[] = [
export function renderWhatsNewChangelogHtml(): string {
return WHATS_NEW_CHANGELOG.map(
(release) =>
`<h1>${release.title}</h1>\n${release.items.map((item) => `<li>${item}</li>`).join("\n")}`,
).join("\n\n ");
`<section class="whatsnewRelease">\n<h1>${release.title}</h1>\n${release.items.map((item) => `<li>${item}</li>`).join("\n")}\n</section>`,
).join("\n");
}