fix(electron): optimize tab switching (#12518)

fix AF-2670

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Style**
  - Updated styling so that opacity and transition effects apply only when a translucent background is present, enhancing visual precision.
- **Chores**
  - Renamed a data attribute in the app container for improved consistency.
  - Disabled background throttling for specific views to maintain performance when running in the background.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
pengx17
2025-05-27 03:14:12 +00:00
parent 502fb96f55
commit 83a483a06d
3 changed files with 4 additions and 7 deletions

View File

@@ -49,7 +49,7 @@ export const AppContainer = ({
'blur-background': blurBackground,
})}
data-noise-background={noisyBackground}
data-blur-background={blurBackground}
data-translucent={blurBackground}
>
<LayoutComponent fallback={fallback}>{children}</LayoutComponent>
</div>