From 5261d3d31eafe993e45d34a5cc9532dd4a023761 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Mon, 16 Jun 2025 19:26:57 +0200 Subject: [PATCH] Update General.svelte --- .../components/chat/Settings/General.svelte | 26 +++++++++++-------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/lib/components/chat/Settings/General.svelte b/src/lib/components/chat/Settings/General.svelte index 4553c01e3..507942dcb 100644 --- a/src/lib/components/chat/Settings/General.svelte +++ b/src/lib/components/chat/Settings/General.svelte @@ -24,6 +24,16 @@ let showAdvanced = false; + let currentTextareaClassName: string; + $: { + const base = "w-full text-sm outline-hidden resize-none"; + if ($settings.highContrastMode) { + currentTextareaClassName = `${base} p-2.5 border-2 border-gray-300 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-850 text-gray-900 dark:text-gray-100 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 overflow-y-hidden`; + } else { + currentTextareaClassName = `${base} bg-white dark:text-gray-300 dark:bg-gray-900`; // Original simpler style + } + } + const toggleNotification = async () => { const permission = await Notification.requestPermission(); @@ -187,7 +197,7 @@ }; -
+
{$i18n.t('WebUI Settings')}
@@ -196,9 +206,7 @@
{$i18n.t('Theme')}
{ @@ -267,21 +273,19 @@
- {#if $user?.role === 'admin' || ($user?.permissions.chat?.system_prompt ?? true)} + {#if $user?.role === 'admin' || $user?.permissions.chat?.controls}
{$i18n.t('System Prompt')}