fix: multiple layout shifts with the spinner

This commit is contained in:
James Xylight committed 2025-02-17 11:30:54 -08:00
1 parent d9b45e179b
commit ba8dc7ff22
4 files changed
+25 -23

No files matched your search

+15 -14
View File
@@ -27,7 +27,21 @@
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">
<div class="loader">
<div
style="
width: 100vw;
height: 100vh;
z-index: -50;
position: absolute;
top: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
"
>
<svg
width="40"
height="40"
@@ -73,18 +87,5 @@
.animate-spin {
animation: spin 0.9s linear infinite;
}
.loader {
width: 100vw;
height: 100vh;
z-index: -50;
position: absolute;
top: 0;
left: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
}
</style>
</html>