fix: multiple layout shifts with the spinner
This commit is contained in:
4 files changed
+25
-23
No files matched your search
+15
-14
@@ -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>
|
||||
Reference in new issue
Block a user