refac: styling

This commit is contained in:
Timothy Jaeryang Baek
2025-11-18 03:54:19 -05:00
parent 73734b186b
commit ed6aabfbfd
3 changed files with 45 additions and 32 deletions
@@ -8,6 +8,9 @@
export let name = '';
export let color = '';
export let description = '';
export let edit = false;
export let onDelete: Function = () => {};
</script>
<div class="flex gap-2">
@@ -59,3 +62,18 @@
/>
</div>
</div>
{#if edit}
<div class="flex flex-col w-full mt-2">
<div class=" mb-0.5 text-xs text-gray-500">{$i18n.t('Actions')}</div>
<div class="flex-1">
<button
class="text-xs bg-transparent hover:underline cursor-pointer"
on:click={() => onDelete()}
>
{$i18n.t('Delete')}
</button>
</div>
</div>
{/if}