limit decimal amount

This commit is contained in:
Benjamin Palko 2025-09-04 10:20:17 -04:00
parent ee8f3d9d7b
commit 69cb49c584

View file

@ -53,7 +53,7 @@ StyledButton {
}
return Theme.palette.basecontent;
}
text: `${root.laptopBattery.percentage * 100}%`
text: `${(root.laptopBattery.percentage.toFixed(2) * 100)}%`
}
}
visible: laptopBattery