Merge branch 'dev' into system-prompt-high-contrast

This commit is contained in:
Classic298
2025-06-17 11:10:03 +02:00
committed by GitHub
9 changed files with 258 additions and 254 deletions
@@ -74,7 +74,7 @@
<div class="" slot="content">
<textarea
bind:value={params.system}
class="w-full text-xs outline-hidden resize-none {$settings.highContrastMode
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"
@@ -26,11 +26,11 @@
let currentTextareaClassName: string;
$: {
const base = "w-full text-sm outline-hidden resize-none";
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`; // Original simpler style
currentTextareaClassName = `${base} bg-white dark:text-gray-300 dark:bg-gray-900`;
}
}