mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-12-06 19:56:45 +10:30
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:
1 parent
efa4f8b85c
commit
29bdb0064d
1 file changed
+2
-2
@@ -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");
|
||||
}
|
||||
Reference in new issue
Block a user