mirror of
https://github.com/open-webui/open-webui
synced 2024-11-07 09:09:53 +00:00
enh: custom icon support for actions
This commit is contained in:
parent
d4d7c3d8b6
commit
3cc3671e74
@ -1034,7 +1034,16 @@
|
||||
dispatch('action', action.id);
|
||||
}}
|
||||
>
|
||||
{#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>
|
||||
</Tooltip>
|
||||
{/each}
|
||||
|
Loading…
Reference in New Issue
Block a user