Skip to content

Commit 4512fc0

Browse files
committed
[frontend-next] Optimized dark mode
1 parent 8a68113 commit 4512fc0

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

frontend/src/components/Chart/AreaChart.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const callback = () => {
118118
}
119119
}
120120
}
121-
instance!.updateOptions(chartOptions)
121+
instance?.updateOptions?.(chartOptions)
122122
}
123123
124124

frontend/src/dark.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "ant-design-vue/lib/style/themes/dark.less";
1+
@import "ant-design-vue/dist/antd.dark";

frontend/src/layouts/BaseLayout.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ body {
134134
}
135135
136136
.ant-layout-header {
137-
background-color: #fff;
137+
padding: 0 !important;
138+
background-color: #fff !important;
138139
@media @dark {
139140
background-color: #1f1f1f !important;
140141
}
@@ -184,10 +185,6 @@ body {
184185
}
185186
}
186187
187-
.ant-layout-header {
188-
padding: 0 !important;
189-
}
190-
191188
.ant-table-small {
192189
font-size: 13px;
193190
}

0 commit comments

Comments
 (0)