diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 88219fb..b029cdc 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -3,6 +3,7 @@ import "@fontsource/roboto" import 'virtual:uno.css' import "../style/app.sass" + import "../style/app.scss" import "../style/material.scss" import '@unocss/reset/normalize.css' import '@unocss/reset/tailwind-v4.css' @@ -52,7 +53,7 @@ -
+
{@render children()}
diff --git a/src/style/app.sass b/src/style/app.sass index 62f27fa..15c7e36 100644 --- a/src/style/app.sass +++ b/src/style/app.sass @@ -10,6 +10,9 @@ body margin: 0 background: rgb(var(--m3-scheme-background)) +#layout-view + height: var(--svh) + .hbox display: flex flex-direction: row diff --git a/src/style/app.scss b/src/style/app.scss new file mode 100644 index 0000000..43224e2 --- /dev/null +++ b/src/style/app.scss @@ -0,0 +1,3 @@ +:root { --svh: 100vh; --dvh: 100vh; --svw: 100vw; --dvw: 100vw; } +@supports (height: 100svh) { :root { --svh: 100svh; --svw: 100svw; } } +@supports (height: 100dvh) { :root { --dvh: 100dvh; --dvw: 100dvw; } } \ No newline at end of file