From 4a68c34442b1a1a8d67ee1af5c16fd2348799d2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Volf?= Date: Thu, 22 Aug 2024 22:10:50 +0200 Subject: [PATCH] feat: make the main div span across the entire page --- src/components/app.rs | 5 ++++- src/styles/tailwind.css | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/app.rs b/src/components/app.rs index ac00f95..0ccd3a2 100644 --- a/src/components/app.rs +++ b/src/components/app.rs @@ -6,6 +6,9 @@ use dioxus::prelude::*; #[component] pub(crate) fn App() -> Element { rsx! { - Router:: {} + div { + class: "min-h-screen text-white bg-neutral-800", + Router:: {} + } } } diff --git a/src/styles/tailwind.css b/src/styles/tailwind.css index 24a8f96..4f70d83 100644 --- a/src/styles/tailwind.css +++ b/src/styles/tailwind.css @@ -1,8 +1,15 @@ /* stylelint-disable */ + /* noinspection CssInvalidAtRule */ @tailwind base; /* noinspection CssInvalidAtRule */ @tailwind components; /* noinspection CssInvalidAtRule */ @tailwind utilities; + +html, body, #main { + /* noinspection CssInvalidAtRule */ + @apply min-h-screen; +} + /* stylelint-enable */