From 96d79cf4951b21ae1948f776405bf419fdba1027 Mon Sep 17 00:00:00 2001 From: bietiaop <1527109126@qq.com> Date: Sat, 8 Feb 2025 23:45:33 +0800 Subject: [PATCH] fix --- napcat.webui/index.html | 1 - napcat.webui/src/main.tsx | 5 +++++ src/webui/index.ts | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/napcat.webui/index.html b/napcat.webui/index.html index 12511914..995dfcb2 100644 --- a/napcat.webui/index.html +++ b/napcat.webui/index.html @@ -13,7 +13,6 @@ content="viewport-fit=cover, width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" /> -
diff --git a/napcat.webui/src/main.tsx b/napcat.webui/src/main.tsx index 0a549a81..ed4dfb93 100644 --- a/napcat.webui/src/main.tsx +++ b/napcat.webui/src/main.tsx @@ -22,6 +22,11 @@ if (theme && !theme.startsWith('"')) { localStorage.setItem(key.theme, JSON.stringify(theme)) } +const themeStyle = document.createElement('link') +themeStyle.rel = 'stylesheet' +themeStyle.href = '/files/theme.css' +document.head.appendChild(themeStyle) + ReactDOM.createRoot(document.getElementById('root')!).render( //