mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 21:09:09 +08:00
Fix dark theme mode (#314)
* theme address is fixed * theme address is fixed
This commit is contained in:
parent
93b347d25e
commit
18fc697b91
@ -29,7 +29,7 @@ const SideNav = ({ toggleDarkMode }: Props): JSX.Element => {
|
|||||||
const link = document.createElement('link');
|
const link = document.createElement('link');
|
||||||
link.rel = 'stylesheet';
|
link.rel = 'stylesheet';
|
||||||
link.type = 'text/css';
|
link.type = 'text/css';
|
||||||
link.href = !isDarkMode ? './css/antd.dark.min.css' : './css/antd.min.css';
|
link.href = !isDarkMode ? '/css/antd.dark.min.css' : '/css/antd.min.css';
|
||||||
link.media = 'all';
|
link.media = 'all';
|
||||||
link.id = id;
|
link.id = id;
|
||||||
head.appendChild(link);
|
head.appendChild(link);
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
<meta data-react-helmet="true" name="docusaurus_tag" content="default">
|
<meta data-react-helmet="true" name="docusaurus_tag" content="default">
|
||||||
<link data-react-helmet="true" rel="shortcut icon" href="/favicon.ico">
|
<link data-react-helmet="true" rel="shortcut icon" href="/favicon.ico">
|
||||||
|
|
||||||
<link id='darkMode' rel='stylesheet' type='text/css' href='./css/antd.dark.min.css' />
|
<link id='darkMode' rel='stylesheet' type='text/css' href='/css/antd.dark.min.css' />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user