Skip to content

Commit

Permalink
解决深色模式下的部分白色背景问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yhy0 committed May 19, 2023
1 parent 6d013c2 commit dd268e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ const theme = computed(() => osThemeRef.value === "dark" ? darkTheme : null);

<template>
<n-config-provider :hljs="hljs" :theme="theme">
<Home/>
<!-- https://www.naiveui.com/zh-CN/os-theme/components/global-style -->
<n-global-style />
<Home/>
</n-config-provider>
</template>

1 change: 0 additions & 1 deletion frontend/src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ html {

body {
margin: 0;
color: white;
font-family: "MesloLGS NF", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
"Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
sans-serif;
Expand Down

0 comments on commit dd268e3

Please sign in to comment.