refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2024-11-21 20:20:46 -08:00
parent 9bc0de2c6a
commit 3816e3c2ef
2 changed files with 5 additions and 3 deletions

View File

@ -113,7 +113,7 @@
</div> </div>
{/if} {/if}
<div <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} {citation.source.name}
</div> </div>

View File

@ -14,10 +14,12 @@
</script> </script>
<button <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={() => { on:click={() => {
onClick(id); onClick(id);
}} }}
> >
<span class="line-clamp-1">
{id} {id}
</span>
</button> </button>