sidenotes bug

This commit is contained in:
Simon Martens
2025-05-21 08:08:48 +02:00
parent e9824ea95c
commit afd1433293

View File

@@ -392,17 +392,13 @@ function Letter() {
console.log("Aligned sidenotes", positionedIntervals);
}
if (window.htmx) {
htmx.on("htmx:afterSettle", (e) => {
alignSidenotes();
});
}
window.addEventListener("load", () => {
alignSidenotes();
});
window.addEventListener("resize", alignSidenotes);
alignSidenotes();
}
customElements.define(SCROLL_BUTTON_ELEMENT, ScrollButton);