Browse Source

Merge pull request #644 from ollama-webui/chore-styling

chore: styling fix
Timothy Jaeryang Baek 1 năm trước cách đây
mục cha
commit
bd0a75a885
2 tập tin đã thay đổi với 30 bổ sung29 xóa
  1. 1 1
      README.md
  2. 29 28
      src/routes/(app)/documents/+page.svelte

+ 1 - 1
README.md

@@ -283,7 +283,7 @@ A big shoutout to our amazing supporters who's helping to make this project poss
 
 ### Acknowledgments
 
-Special thanks to [Prof. Lawrence Kim @ SFU](https://www.lhkim.com/) and [Prof. Nick Vincent @ SFU](https://www.nickmvincent.com/) for their invaluable support and guidance in shaping this project into a research endeavor. Grateful for your mentorship throughout the journey! 🙌
+Special thanks to [Prof. Lawrence Kim](https://www.lhkim.com/) and [Prof. Nick Vincent](https://www.nickmvincent.com/) for their invaluable support and guidance in shaping this project into a research endeavor. Grateful for your mentorship throughout the journey! 🙌
 
 ## License 📜
 

+ 29 - 28
src/routes/(app)/documents/+page.svelte

@@ -227,34 +227,6 @@
 					</button>
 				</div>
 			</div>
-			<hr class=" dark:border-gray-700 my-2.5" />
-
-			{#if tags.length > 0}
-				<div class="px-2.5 mt-0.5 mb-2 flex gap-1 flex-wrap">
-					<button
-						class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition border dark:border-gray-600 dark:text-white"
-						on:click={async () => {
-							selectedTag = '';
-							// await chats.set(await getChatListByTagName(localStorage.token, tag.name));
-						}}
-					>
-						<div class=" text-xs font-medium self-center line-clamp-1">all</div>
-					</button>
-					{#each tags as tag}
-						<button
-							class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition border dark:border-gray-600 dark:text-white"
-							on:click={async () => {
-								selectedTag = tag;
-								// await chats.set(await getChatListByTagName(localStorage.token, tag.name));
-							}}
-						>
-							<div class=" text-xs font-medium self-center line-clamp-1">
-								#{tag}
-							</div>
-						</button>
-					{/each}
-				</div>
-			{/if}
 
 			<!-- <div>
 				<div
@@ -278,6 +250,35 @@
 			{#each $documents.filter((doc) => (selectedTag === '' || (doc?.content?.tags ?? [])
 							.map((tag) => tag.name)
 							.includes(selectedTag)) && (query === '' || doc.name.includes(query))) as doc}
+				<hr class=" dark:border-gray-700 my-2.5" />
+
+				{#if tags.length > 0}
+					<div class="px-2.5 mt-0.5 mb-2 flex gap-1 flex-wrap">
+						<button
+							class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition border dark:border-gray-600 dark:text-white"
+							on:click={async () => {
+								selectedTag = '';
+								// await chats.set(await getChatListByTagName(localStorage.token, tag.name));
+							}}
+						>
+							<div class=" text-xs font-medium self-center line-clamp-1">all</div>
+						</button>
+						{#each tags as tag}
+							<button
+								class="px-2 py-0.5 space-x-1 flex h-fit items-center rounded-full transition border dark:border-gray-600 dark:text-white"
+								on:click={async () => {
+									selectedTag = tag;
+									// await chats.set(await getChatListByTagName(localStorage.token, tag.name));
+								}}
+							>
+								<div class=" text-xs font-medium self-center line-clamp-1">
+									#{tag}
+								</div>
+							</button>
+						{/each}
+					</div>
+				{/if}
+
 				<div class=" flex space-x-4 cursor-pointer w-full mt-3 mb-3">
 					<div class=" flex flex-1 space-x-4 cursor-pointer w-full">
 						<div class=" flex items-center space-x-3">