[frontend-next] Optimized dark mode

This commit is contained in:
0xJacky 2022-08-01 20:32:21 +08:00
parent 8a681131a9
commit 4512fc0309
3 changed files with 4 additions and 7 deletions

View file

@ -118,7 +118,7 @@ const callback = () => {
}
}
}
instance!.updateOptions(chartOptions)
instance?.updateOptions?.(chartOptions)
}

View file

@ -1 +1 @@
@import "ant-design-vue/lib/style/themes/dark.less";
@import "ant-design-vue/dist/antd.dark";

View file

@ -134,7 +134,8 @@ body {
}
.ant-layout-header {
background-color: #fff;
padding: 0 !important;
background-color: #fff !important;
@media @dark {
background-color: #1f1f1f !important;
}
@ -184,10 +185,6 @@ body {
}
}
.ant-layout-header {
padding: 0 !important;
}
.ant-table-small {
font-size: 13px;
}