diff --git a/input.css b/input.css index 04f2e31..7383206 100644 --- a/input.css +++ b/input.css @@ -1,7 +1,24 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; +@import 'tailwindcss'; +@config './tailwind.config.js'; + +/* + The default border color has changed to `currentColor` in Tailwind CSS v4, + so we've added these compatibility styles to make sure everything still + looks the same as it did with Tailwind CSS v3. + + If we ever want to remove these styles, we need to add an explicit border + color utility to any element that depends on these defaults. +*/ +@layer base { + *, + ::after, + ::before, + ::backdrop, + ::file-selector-button { + border-color: var(--color-gray-200, currentColor); + } +} body { @apply dark:bg-prim dark:text-second diff --git a/src/routes/data.rs b/src/routes/data.rs index 1936ffb..34ea5e8 100644 --- a/src/routes/data.rs +++ b/src/routes/data.rs @@ -61,15 +61,14 @@ pub fn ValueCard(topic: String, location: String, sensor: String, unity: String,
} }> - {move || { - value.get().map(move |x| { + {move || value.get().map(move |x| { x.map(move |result| { view! {