Add missing units to node details info cards

pull/1543/head^2
Ken Piper 2025-02-14 01:40:33 -06:00 zatwierdzone przez James Rich
rodzic 0aff35b560
commit 86128a19c8
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -457,14 +457,14 @@ private fun EnvironmentMetrics(
InfoCard(
icon = Icons.Default.Speed,
text = "Pressure",
value = "%.0f".format(barometricPressure)
value = "%.0f hPa".format(barometricPressure)
)
}
if (gasResistance != 0f) {
InfoCard(
icon = Icons.Default.BlurOn,
text = "Gas Resistance",
value = "%.0f".format(gasResistance)
value = "%.0f".format(gasResistance)
)
}
if (voltage != 0f) {
@ -499,7 +499,7 @@ private fun EnvironmentMetrics(
InfoCard(
icon = Icons.Default.LightMode,
text = "Lux",
value = "%.0f".format(lux)
value = "%.0f lx".format(lux)
)
}
if (hasWindSpeed()) {
@ -523,7 +523,7 @@ private fun EnvironmentMetrics(
InfoCard(
icon = ImageVector.vectorResource(R.drawable.ic_filled_radioactive_24),
text = "Radiation",
value = "%.1f µR".format(radiation)
value = "%.1f µR/h".format(radiation)
)
}
}