This commit is contained in:
Timothy Jaeryang Baek committed 2025-12-07 23:56:37 -05:00
1 parent 3c8f1cf8e5
commit ce945a9334
1 file changed
+29 -31
@@ -1460,37 +1460,35 @@
{/if} {/if}
{/if} {/if}
{#if isLastMessage} {#each model?.actions ?? [] as action}
{#each model?.actions ?? [] as action} <Tooltip content={action.name} placement="bottom">
<Tooltip content={action.name} placement="bottom"> <button
<button type="button"
type="button" aria-label={action.name}
aria-label={action.name} class="{isLastMessage || ($settings?.highContrastMode ?? false)
class="{isLastMessage || ($settings?.highContrastMode ?? false) ? 'visible'
? 'visible' : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
: 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition" on:click={() => {
on:click={() => { actionMessage(action.id, message);
actionMessage(action.id, message); }}
}} >
> {#if action?.icon}
{#if action?.icon} <div class="size-4">
<div class="size-4"> <img
<img src={action.icon}
src={action.icon} class="w-4 h-4 {action.icon.includes('svg')
class="w-4 h-4 {action.icon.includes('svg') ? 'dark:invert-[80%]'
? 'dark:invert-[80%]' : ''}"
: ''}" style="fill: currentColor;"
style="fill: currentColor;" alt={action.name}
alt={action.name} />
/> </div>
</div> {:else}
{:else} <Sparkles strokeWidth="2.1" className="size-4" />
<Sparkles strokeWidth="2.1" className="size-4" /> {/if}
{/if} </button>
</button> </Tooltip>
</Tooltip> {/each}
{/each}
{/if}
{/if} {/if}
{/if} {/if}
{/if} {/if}