mirror of
https://github.com/open-webui/open-webui
synced 2025-06-23 02:16:52 +00:00
Update General.svelte
This commit is contained in:
parent
872b0ac943
commit
3814bbf7b3
@ -24,16 +24,6 @@
|
||||
|
||||
let showAdvanced = false;
|
||||
|
||||
let currentTextareaClassName: string;
|
||||
$: {
|
||||
const base = "w-full text-sm outline-hidden resize-vertical";
|
||||
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`;
|
||||
}
|
||||
}
|
||||
|
||||
const toggleNotification = async () => {
|
||||
const permission = await Notification.requestPermission();
|
||||
|
||||
@ -284,7 +274,11 @@
|
||||
<div class=" my-2.5 text-sm font-medium">{$i18n.t('System Prompt')}</div>
|
||||
<Textarea
|
||||
bind:value={system}
|
||||
className={currentTextareaClassName}
|
||||
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