Skip to content

Commit

Permalink
修复一处样式错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LeafYeeXYZ committed May 13, 2024
1 parent a826910 commit 17d66e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function App() {
// 视情况弹出更新提示
versionInfo && dialogAction(versionInfo)
// 根据用户设备暗色模式偏好设置主题
if (window.matchMedia('(prefers-color-scheme: dark)').matches) document.body.classList.add('dark')
if (window.matchMedia('(prefers-color-scheme: dark)').matches) document.documentElement.classList.add('dark')
}, [dialogAction])

return (
Expand Down
5 changes: 2 additions & 3 deletions src/styles/App.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:root {
html {
--prompt-height: 260px;
--prompt-btn-width: 100%;
--prompt-btn-gap: 0;
Expand Down Expand Up @@ -74,7 +74,6 @@ button {
border: none;
outline: none;
}
html,
body {
html, body {
background-color: var(--back);
}

0 comments on commit 17d66e3

Please sign in to comment.