mirror of
				https://github.com/open-webui/open-webui
				synced 2025-06-26 18:26:48 +00:00 
			
		
		
		
	Merge pull request #15034 from Classic298/system-prompt-high-contrast
feat: System prompt input fields high contrast mode
This commit is contained in:
		
						commit
						a21519f8f2
					
				@ -9,7 +9,7 @@
 | 
			
		||||
	import FileItem from '$lib/components/common/FileItem.svelte';
 | 
			
		||||
	import Collapsible from '$lib/components/common/Collapsible.svelte';
 | 
			
		||||
 | 
			
		||||
	import { user } from '$lib/stores';
 | 
			
		||||
	import { user, settings } from '$lib/stores';
 | 
			
		||||
	export let models = [];
 | 
			
		||||
	export let chatFiles = [];
 | 
			
		||||
	export let params = {};
 | 
			
		||||
@ -74,7 +74,9 @@
 | 
			
		||||
				<div class="" slot="content">
 | 
			
		||||
					<textarea
 | 
			
		||||
						bind:value={params.system}
 | 
			
		||||
						class="w-full text-xs py-1.5 bg-transparent outline-hidden resize-vertical"
 | 
			
		||||
						class="w-full text-xs outline-hidden resize-vertical {$settings.highContrastMode
 | 
			
		||||
							? 'border-2 border-gray-300 dark:border-gray-700 rounded-lg bg-gray-50 dark:bg-gray-800 p-2.5'
 | 
			
		||||
							: 'py-1.5 bg-transparent'}"
 | 
			
		||||
						rows="4"
 | 
			
		||||
						placeholder={$i18n.t('Enter system prompt')}
 | 
			
		||||
					/>
 | 
			
		||||
 | 
			
		||||
@ -274,7 +274,11 @@
 | 
			
		||||
				<div class=" my-2.5 text-sm font-medium">{$i18n.t('System Prompt')}</div>
 | 
			
		||||
				<Textarea
 | 
			
		||||
					bind:value={system}
 | 
			
		||||
					className="w-full text-sm bg-white dark:text-gray-300 dark:bg-gray-900 outline-hidden resize-vertical"
 | 
			
		||||
					className={
 | 
			
		||||
						"w-full text-sm outline-hidden resize-vertical" + ($settings.highContrastMode
 | 
			
		||||
							? " 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"
 | 
			
		||||
							: " bg-white dark:text-gray-300 dark:bg-gray-900")
 | 
			
		||||
					}
 | 
			
		||||
					rows="4"
 | 
			
		||||
					placeholder={$i18n.t('Enter system prompt here')}
 | 
			
		||||
				/>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user