feat: disable high power consumption without charger (#14281)

Co-authored-by: DarkSky <darksky2048@gmail.com>
This commit is contained in:
Akshaj Rawat
2026-01-27 02:16:16 +05:30
committed by GitHub
parent 3b4b0bad22
commit b8f626513f
9 changed files with 143 additions and 5 deletions
@@ -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;
}