fix: file-show: misplaced spinner

Massimo Melina committed Jan 2, 2024 at 16:42 UTC de955406b2f7b2aa2744847f890196d1baa2e4f3
2 files changed +2 -2
frontend/src/index.scss
+1 -1
@@ -664,7 +664,7 @@ button label {
664 gap: .5em 1.5em;
665
666 .entry-details { font-size: smaller; }
667 - .entry-ts { display: inherit; }
667 + .entry-ts { display: inherit; font-size: smaller; }
668 .entry-size::after { display: none }
669 }
670 }
frontend/src/show.ts
+1 -1
@@ -85,7 +85,7 @@ export function fileShow(entry: DirEntry) {
85 iconBtn('close', close),
86 )
87 ),
88 - h(FlexV, { center: true, className: 'main', ref: mainRef },
88 + h(FlexV, { center: true, alignItems: 'center', className: 'main', ref: mainRef },
89 loading && h(Spinner, { style: { position: 'absolute', fontSize: '20vh', opacity: .5 } }),
90 failed === cur.n ? h(FlexV, { alignItems: 'center', textAlign: 'center' },
91 hIcon('error', { style: { fontSize: '20vh' } }),