fix: use svh instead of vh
This commit is contained in:
@@ -28,7 +28,7 @@ const AppRoot = () => {
|
|||||||
className="pointer-events-none fixed inset-0 z-20 bg-black"
|
className="pointer-events-none fixed inset-0 z-20 bg-black"
|
||||||
style={{ opacity }}
|
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" ? (
|
{state === "login" ? (
|
||||||
<Sddm />
|
<Sddm />
|
||||||
) : (
|
) : (
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ export const Boot = () => {
|
|||||||
}, [setState, line]);
|
}, [setState, line]);
|
||||||
|
|
||||||
return (
|
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) => (
|
{LINES.filter((_, i) => i <= line).map((line, i) => (
|
||||||
<p key={i}>{line}</p>
|
<p key={i}>{line}</p>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export const Off = () => {
|
|||||||
}, [state, setState, booting]);
|
}, [state, setState, booting]);
|
||||||
|
|
||||||
return (
|
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
|
<button
|
||||||
className={`drop-shadow-white cursor-pointer transition-all ${
|
className={`drop-shadow-white cursor-pointer transition-all ${
|
||||||
booting ? "animate-disappear" : "animate-breathing"
|
booting ? "animate-disappear" : "animate-breathing"
|
||||||
|
|||||||
Reference in New Issue
Block a user