Browse Source

refac: styling

Timothy Jaeryang Baek 5 months ago
parent
commit
3816e3c2ef

+ 1 - 1
src/lib/components/chat/Messages/Citations.svelte

@@ -113,7 +113,7 @@
 							</div>
 						{/if}
 						<div
-							class="flex-1 mx-1 line-clamp-1 truncate text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white transition"
+							class="flex-1 mx-1 line-clamp-1 text-black/60 hover:text-black dark:text-white/60 dark:hover:text-white transition"
 						>
 							{citation.source.name}
 						</div>

+ 4 - 2
src/lib/components/chat/Messages/Markdown/Source.svelte

@@ -14,10 +14,12 @@
 </script>
 
 <button
-	class="text-xs font-medium px-2 py-0.5 dark:bg-white/5 dark:text-white/60 dark:hover:text-white bg-gray-50 text-black/60 hover:text-black transition rounded-lg"
+	class="text-xs font-medium w-fit translate-y-[2px] px-2 py-0.5 dark:bg-white/5 dark:text-white/60 dark:hover:text-white bg-gray-50 text-black/60 hover:text-black transition rounded-lg"
 	on:click={() => {
 		onClick(id);
 	}}
 >
-	{id}
+	<span class="line-clamp-1">
+		{id}
+	</span>
 </button>