fix(ui): 移除快速切换时闪烁的整页淡入动画

- 保留首帧前切好主题背景
- 去掉页面根容器从透明度 0 重新淡入的动画,避免快速点 tab 时闪系统底色
This commit is contained in:
2026-08-18 23:32:44 +08:00
parent acd3c1c2e1
commit fd58135fdb
3 changed files with 3 additions and 11 deletions
+2 -3
View File
@@ -36,10 +36,9 @@ test('scroll top back button matches the global liquid-glass back style', () =>
assert.match(css, /backdrop-filter: blur\(24px\) saturate\(1\.7\) brightness\(1\.05\)/)
})
test('app sets page background before first render and fades pages in', () => {
test('app sets page background before first render without a blinking full fade', () => {
const appSource = read('src/app.tsx')
const appCss = read('src/app.scss')
assert.match(appSource, /componentWillMount/)
assert.match(appCss, /@keyframes page-fade-in/)
assert.match(appCss, /animation: page-fade-in/)
assert.doesNotMatch(appCss, /animation:\s*page-fade-in/)
})