fix: misaligment of loading animation

This commit is contained in:
Hakadao
2022-12-04 18:42:36 +08:00
parent 18adbc5149
commit c970450cba

View File

@@ -316,7 +316,17 @@ function scrollToTop(element: HTMLElement, duration: number) {
/>
<!-- empty -->
<empty v-if="!isLoading && moments.length === 0" w="full" h="full" />
<empty
v-if="!isLoading && moments.length === 0"
pos="absolute left-0"
bg="$bew-content-1"
z="1"
w="full"
h="full"
flex="~"
items="center"
border="rounded-$bew-radius"
/>
<!-- moments -->
<transition-group name="list">