UX: Center loading spinner for editing nav menu tags modal (#23786)

This commit is contained in:
Alan Guo Xiang Tan 2023-10-05 09:17:34 +08:00 committed by GitHub
parent fbf92a2212
commit 790f6b1121
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -17,10 +17,10 @@
@filterUnselected={{this.filterUnselected}}
@closeModal={{@closeModal}}
>
<form class="sidebar-tags-form">
{{#if this.tagsLoading}}
<div class="spinner"></div>
{{else}}
{{#if this.tagsLoading}}
{{loading-spinner size="large"}}
{{else}}
<form class="sidebar-tags-form">
{{#if (gt this.tags.length 0)}}
{{#each this.tags as |tag|}}
<div
@ -57,8 +57,8 @@
{{i18n "sidebar.tags_form_modal.no_tags"}}
</div>
{{/if}}
{{/if}}
</form>
</form>
{{/if}}
<ConditionalLoadingSpinner @condition={{this.tags.loadingMore}} />
</Sidebar::EditNavigationMenu::Modal>