enh: custom icon support for actions

This commit is contained in:
Timothy J. Baek 2024-07-15 12:15:00 +02:00
parent d4d7c3d8b6
commit 3cc3671e74

View File

@ -1034,7 +1034,16 @@
dispatch('action', action.id); dispatch('action', action.id);
}} }}
> >
<Sparkles strokeWidth="2.1" className="size-4" /> {#if action.icon_url}
<img
src={action.icon_url}
class="w-4 h-4 dark:invert-[80%]"
style="fill: currentColor;"
alt={action.name}
/>
{:else}
<Sparkles strokeWidth="2.1" className="size-4" />
{/if}
</button> </button>
</Tooltip> </Tooltip>
{/each} {/each}