UI: smaller scale energy limits (#18226)

This commit is contained in:
Michael Geers 2025-01-14 16:52:40 +01:00 • committed by GitHub
parent ae853058c8
commit 961968e5b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,7 @@
import { POWER_UNIT } from "../mixins/formatter";
export function optionStep(maxEnergy) {
if (maxEnergy < 0.1) return 0.005;
if (maxEnergy < 1) return 0.05;
if (maxEnergy < 2) return 0.1;
if (maxEnergy < 5) return 0.25;