fix: initial spinner still weird
Massimo Melina committed
Apr 4, 2023 at 20:00 UTC
a89fd8eb247fdb1a41e0ccf4cccd647fc679d72d
2 files changed
+2
-2
frontend/src/App.ts
+1
-1
@@ -17,7 +17,7 @@ function App() {
17
if (messageOnly)
18
return h('h1', { style: { textAlign: 'center'} }, messageOnly)
19
if (!ready)
20
- return h(Spinner, { style: { marginTop: '1em' } })
20
+ return h(Spinner, { style: { margin: 'auto' } })
21
return h(I18Nprovider, {},
22
h(BrowserRouter, {},
23
h(Routes, {},
frontend/src/index.scss
+1
-1
@@ -176,7 +176,7 @@ header {
176
177
.spinner, .icon.spinner:before {
178
animation: 1.5s spin infinite linear;
179
- display: inline-flex; justify-content: center; align-items: center;
179
+ display: inline-flex; justify-content: center; align-items: center; width: min-content;
180
}
181
.icon.emoji.spinner { display: inline-block; }
182