mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
feat: disable high power consumption without charger (#14281)
Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
@@ -23,3 +23,12 @@ html[data-active='true']:has([data-translucent='true']) {
|
||||
opacity: 1;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable animations and transitions when on battery.
|
||||
* We use :not(.playwright-test) to ensure tests (which rely on animations) don't break.
|
||||
*/
|
||||
body.on-battery:not(.playwright-test) * {
|
||||
animation-duration: 0ms !important;
|
||||
transition-duration: 0ms !important;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user