Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: prioritize user css by moving it to the body end (#847)

M. Gschwandtner278b4d21b451
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 62748f59c..28d834314 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -48,7 +48,7 @@ const App = () => {
const styleEl = document.createElement("style");
styleEl.innerHTML = systemStatus.additionalStyle;
styleEl.setAttribute("type", "text/css");
- document.head.appendChild(styleEl);
+ document.body.insertAdjacentElement("beforeend", styleEl);
}
if (systemStatus.additionalScript) {
const scriptEl = document.createElement("script");