style(theme): 缩短明暗过渡到 160ms
This commit is contained in:
@@ -309,7 +309,7 @@ export default function AppNext() {
|
||||
if (root.dataset.scheme === scheme) return
|
||||
root.classList.add('theme-transition')
|
||||
root.dataset.scheme = scheme
|
||||
const timer = window.setTimeout(() => root.classList.remove('theme-transition'), 260)
|
||||
const timer = window.setTimeout(() => root.classList.remove('theme-transition'), 180)
|
||||
return () => {
|
||||
window.clearTimeout(timer)
|
||||
root.classList.remove('theme-transition')
|
||||
|
||||
Reference in New Issue
Block a user