浏览代码

add: loading animation

Aryan Kothari 9 月之前
父节点
当前提交
220a4bb535
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/lib/components/layout/Sidebar.svelte

+ 6 - 0
src/lib/components/layout/Sidebar.svelte

@@ -39,6 +39,7 @@
 	import UserMenu from './Sidebar/UserMenu.svelte';
 	import UserMenu from './Sidebar/UserMenu.svelte';
 	import ChatItem from './Sidebar/ChatItem.svelte';
 	import ChatItem from './Sidebar/ChatItem.svelte';
 	import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
 	import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
+	import Sparkles from '../icons/Sparkles.svelte';
 
 
 	const BREAKPOINT = 768;
 	const BREAKPOINT = 768;
 
 
@@ -591,6 +592,11 @@
 						}}
 						}}
 					/>
 					/>
 				{/each}
 				{/each}
+				{#if nextPageLoading}
+					<div class="w-full flex justify-center py-4 animate-pulse">
+						<Sparkles />
+					</div>
+				{/if}
 			</div>
 			</div>
 		</div>
 		</div>