fix: restore visible Ko-fi support across screen sizes

This commit is contained in:
Thomas Durieux committed 2026-10-07 15:02:53 +00:00
1 parent 282efdc16e
commit a7e3826da7
7 files changed
+86 -18

No files matched your search

+5
View File
@@ -64,6 +64,11 @@ export const mainController = function (state, http, location, timeout) {
document.head.append(link);
$(`link[href='${darkPrismLink}']`).remove();
}
const kofiBtn = document.querySelector("[class*='floatingchat-container-wrap'] [class*='floating-chat-kofi-text-container-wrap']");
if (kofiBtn) {
kofiBtn.style.backgroundColor = on ? "#FAF9F6" : "#1A1815";
kofiBtn.style.color = on ? "#1A1815" : "#FAF9F6";
}
state.emit("dark-mode", on);
};