Change spinner location

This commit is contained in:
Adria Navarro 2023-09-25 11:03:35 +02:00
parent 10fdd696c6
commit 26362c44e8
1 changed files with 12 additions and 5 deletions

View File

@ -261,13 +261,14 @@
</li> </li>
{/each} {/each}
{/if} {/if}
{#if loading}
<li class="spectrum-Menu-item loading">
<ProgressCircle size="S" />
</li>
{/if}
</ul> </ul>
{#if loading}
<div class="loading" class:loading--withAutocomplete={autocomplete}>
<ProgressCircle size="S" />
</div>
{/if}
{#if footer} {#if footer}
<div class="footer"> <div class="footer">
{footer} {footer}
@ -381,6 +382,12 @@
} }
.loading { .loading {
position: fixed;
justify-content: center; justify-content: center;
right: var(--spacing-s);
top: var(--spacing-s);
}
.loading--withAutocomplete {
top: calc(34px + var(--spacing-m));
} }
</style> </style>