refactor: migrate templates to tailwind utilities

This commit is contained in:
2026-04-15 00:07:56 +02:00
parent 01c738588f
commit 0a5f64c604
23 changed files with 374 additions and 1614 deletions

View File

@@ -148,7 +148,7 @@
return formatter.format(date);
};
const updateNextAiring = (node, parsed) => {
const card = node.closest(".notification-content");
const card = node.closest("[data-notification-content]");
if (!card) {
return;
}
@@ -164,7 +164,7 @@
nextNode.textContent = `Next episode ${relativeText(nextDate)} (${localDateTimeText(nextDate)})`;
};
const updateNode = (node, localOffsetMinutes) => {
const card = node.closest(".notification-content");
const card = node.closest("[data-notification-content]");
const nextNode = card ? card.querySelector("[data-next-airing]") : null;
const structured = parseFromStructuredAttrs(node);
const source = node.getAttribute("data-jst-text");