mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-10-19 06:07:21 +02:00
fix: restore visible Ko-fi support across screen sizes
This commit is contained in:
1 parent
282efdc16e
commit
a7e3826da7
7 files changed
+86
-18
No files matched your search
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user