diff --git a/src/routes/data.rs b/src/routes/data.rs index 81c17e9..15a0b2c 100644 --- a/src/routes/data.rs +++ b/src/routes/data.rs @@ -79,6 +79,7 @@ pub fn ValueCard(topic: String, location: String, sensor: String, unity: String, #[component] pub fn Card(sensor_props: ReadSignal<(String, String, String, String)>, value: Value) -> impl IntoView { let (location, sensor, unity, color) = sensor_props.get(); + let value_class = ["text-4xl flex ml-5 -my-2 text-center ", color.as_str()].join(" "); view! {