fix: use svh instead of vh

This commit is contained in:
Pihkaal
2024-09-12 22:19:48 +02:00
parent 73e2c92b9b
commit b88f7b3d26
3 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ const AppRoot = () => {
className="pointer-events-none fixed inset-0 z-20 bg-black"
style={{ opacity }}
/>
<main className="h-screen w-screen overflow-hidden bg-[url(/wallpaper.webp)] bg-cover bg-center">
<main className="h-[100svh] w-screen overflow-hidden bg-[url(/wallpaper.webp)] bg-cover bg-center">
{state === "login" ? (
<Sddm />
) : (

View File

@@ -32,7 +32,7 @@ export const Boot = () => {
}, [setState, line]);
return (
<main className="h-screen w-screen bg-black text-white">
<main className="h-[100svh] w-screen bg-black text-white">
{LINES.filter((_, i) => i <= line).map((line, i) => (
<p key={i}>{line}</p>
))}

View File

@@ -20,7 +20,7 @@ export const Off = () => {
}, [state, setState, booting]);
return (
<div className="flex h-screen w-screen flex-col items-center justify-center bg-black">
<div className="flex h-[100svh] w-screen flex-col items-center justify-center bg-black">
<button
className={`drop-shadow-white cursor-pointer transition-all ${
booting ? "animate-disappear" : "animate-breathing"