Skip to content

Commit 22fd4d3

Browse files
committed
fix: center loading spinner
1 parent ef84f39 commit 22fd4d3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/player/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ export class PlayerInit {
1212
const div = document.getElementById('content-wrapper')!;
1313
const loader = document.createElement('div');
1414

15-
loader.style.height = 'calc(100vh - 64px)';
15+
loader.style.height = 'calc(100vh - 64px - 270px)';
1616
loader.style.width = '100%';
17+
loader.style.display = 'flex';
18+
loader.style.justifyContent = 'center';
19+
loader.style.alignItems = 'center';
1720
loader.innerHTML = `
18-
<svg class="circular" viewBox="25 25 50 50" style="height: 100px; width: 100px;">
21+
<svg class="circular" viewBox="25 25 50 50" style="height: 100px; width: 100px; position: absolute; top: 270px">
1922
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10"></circle>
2023
</svg>
2124
`;

0 commit comments

Comments
 (0)