Browse Source

Fix vertical align for spinner

JC Brand 2 months ago
parent
commit
afcaf8f3a6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/templates/styles/spinner.scss

+ 4 - 2
src/templates/styles/spinner.scss

@@ -1,7 +1,9 @@
 converse-spinner {
 converse-spinner {
     &.vertically-centered {
     &.vertically-centered {
-        height: 100%;
-        margin-top: 30%;
+        display: flex;
+        align-items: center;
+        justify-content: center;
+        height: 100%; /* Ensure the parent has a defined height */
     }
     }
 }
 }