Use centralized loading indicator
This commit is contained in:
1 parent
4ca2da91f0
commit
464a238f91
17 files changed
+258
-369
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<script>
|
||||
import Spinner from "./Spinner.svelte";
|
||||
|
||||
export let loading = false
|
||||
</script>
|
||||
|
||||
{#if loading}
|
||||
<div class="container">
|
||||
<Spinner/>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<style>
|
||||
.container {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
height: 120px;
|
||||
width: 120px;
|
||||
z-index: 1000;
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user