refac: styling

This commit is contained in:
Timothy Jaeryang Baek 2024-11-21 18:05:45 -08:00
parent 7b675a1488
commit 714ed248fb
2 changed files with 5 additions and 3 deletions

View File

@ -95,7 +95,7 @@
{#each _citations as citation, idx} {#each _citations as citation, idx}
<button <button
id={`source-${citation.source.name}`} id={`source-${citation.source.name}`}
class="no-toggle outline-none flex dark:text-gray-300 p-1 bg-white hover:bg-gray-50 dark:bg-gray-900 dark:hover:bg-gray-850 transition rounded-xl max-w-96" class="no-toggle outline-none flex dark:text-gray-300 p-1 bg-white dark:bg-gray-900 rounded-xl max-w-96"
on:click={() => { on:click={() => {
showCitationModal = true; showCitationModal = true;
selectedCitation = citation; selectedCitation = citation;
@ -106,7 +106,9 @@
{idx + 1} {idx + 1}
</div> </div>
{/if} {/if}
<div class="flex-1 mx-1 line-clamp-1 truncate"> <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"
>
{citation.source.name} {citation.source.name}
</div> </div>
</button> </button>

View File

@ -14,7 +14,7 @@
</script> </script>
<button <button
class="text-xs font-medium px-2 py-0.5 dark:bg-white/5 dark:text-white/50 dark:hover:text-white bg-gray-50 text-black/60 hover:text-black transition rounded-lg" 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"
on:click={() => { on:click={() => {
onClick(id); onClick(id);
}} }}