refac: action buttons styling

This commit is contained in:
Timothy Jaeryang Baek 2025-01-11 13:47:02 -08:00
parent 21abe43f3b
commit ccbd98dfab

View File

@ -1180,12 +1180,13 @@
type="button"
class="{isLastMessage
? '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 regenerate-response-button"
: '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={() => {
actionMessage(action.id, message);
}}
>
{#if action.icon_url}
<div class="size-4">
<img
src={action.icon_url}
class="w-4 h-4 {action.icon_url.includes('svg')
@ -1194,6 +1195,7 @@
style="fill: currentColor;"
alt={action.name}
/>
</div>
{:else}
<Sparkles strokeWidth="2.1" className="size-4" />
{/if}