Add missing units to node details info cards

This commit is contained in:
Ken Piper 2025-02-14 01:40:33 -06:00 committed by James Rich
parent 0aff35b560
commit 86128a19c8

View file

@ -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)
)
}
}