From 2387ce63cbd3f3ac350393e4128edae7e97d4891 Mon Sep 17 00:00:00 2001 From: Solaris-star <67425364+Solaris-star@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:27:42 +0800 Subject: [PATCH] fix(chat): keep regenerate button visible in High Contrast mode (#27644) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every action button on a response message gates its visibility on 'isLastMessage || ($settings?.highContrastMode ?? false)' so that buttons stay visible (not hover-only) when High Contrast mode is on. The two Regenerate buttons — the one inside RegenerateMenu and the fallback in the {:else} branch — were missed and still gated on isLastMessage alone, so on any non-last message the Regenerate icon was invisible until mouse-over even with High Contrast enabled (#27638). Add the same highContrastMode clause to both buttons, matching the other action buttons in this file. --- src/lib/components/chat/Messages/ResponseMessage.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index d74e4563b8..dc31394b97 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -1388,7 +1388,7 @@