mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 12:55:19 +00:00
enh: custom icon support for actions
This commit is contained in:
parent
d4d7c3d8b6
commit
3cc3671e74
1 changed files with 10 additions and 1 deletions
|
|
@ -1034,7 +1034,16 @@
|
|||
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>
|
||||
</Tooltip>
|
||||
{/each}
|
||||
|
|
|
|||
Loading…
Reference in a new issue