From ccbd98dfab95338b9fd98714e314f13950dd972d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 11 Jan 2025 13:47:02 -0800 Subject: [PATCH] refac: action buttons styling --- .../chat/Messages/ResponseMessage.svelte | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index 0e5b55ad9..d66ad9817 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -1180,20 +1180,22 @@ 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} - {action.name} +
+ {action.name} +
{:else} {/if}