Fix Popup, Loading, DateRange animation (#1893)

This commit is contained in:
Alexander Platov
2022-05-28 22:59:53 +07:00
committed by GitHub
parent a2858c845e
commit 79bce33abc
10 changed files with 48 additions and 29 deletions
@@ -24,7 +24,7 @@
IconSearch,
Label,
navigate,
Spinner,
Loading,
Tooltip
} from '@anticrm/ui'
import view from '@anticrm/view'
@@ -156,8 +156,8 @@
<FileBrowserSortMenu bind:selectedSort />
</div>
{#if isLoading}
<div class="ml-4">
<Spinner />
<div class="flex-grow">
<Loading />
</div>
{:else if attachments?.length}
{#if isListDisplayMode}
@@ -174,8 +174,11 @@
<style lang="scss">
.group {
padding: 1rem 0;
overflow: auto;
display: flex;
flex-direction: column;
padding: 1rem 0;
height: 100%;
}
.groupHeader {
@@ -200,9 +200,7 @@
</tr>
</thead>
{/if}
{#if loading > 0}
<Loading />
{:else if objects.length}
{#if objects.length}
<tbody>
{#each objects as object, row (object._id)}
<tr
@@ -302,4 +300,5 @@
</tbody>
{/if}
</table>
{#if loading > 0}<Loading />{/if}
{/await}
@@ -397,7 +397,7 @@
{#if currentApplication}
<NavHeader label={currentApplication.label} />
{#if currentApplication.navHeaderComponent}
<Component is={currentApplication.navHeaderComponent} props={{ currentSpace }} />
<Component is={currentApplication.navHeaderComponent} props={{ currentSpace }} shrink />
{/if}
{/if}
<Navigator