From 278b4d21b4510fd562d2f42d659b5f6750d5cd97 Mon Sep 17 00:00:00 2001 From: "M. Gschwandtner" <84477901+m-gschwandtner@users.noreply.github.com> Date: Sat, 24 Dec 2022 02:35:30 +0100 Subject: [PATCH] fix: prioritize user css by moving it to the body end (#847) Co-authored-by: M. Gschwandtner <84477901+OnlyPain-ctrl@users.noreply.github.com> --- web/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/App.tsx b/web/src/App.tsx index 62748f59..28d83431 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");