From 4708118f96e24fdc2b37ccafea6a63387d470f59 Mon Sep 17 00:00:00 2001 From: Diego Imbert Date: Fri, 19 Sep 2025 16:32:12 +0200 Subject: [PATCH] no-default-style --- frontend/src/lib/components/AIProviderPicker.svelte | 2 +- .../components/flows/content/DynamicInputHelpBox.svelte | 2 -- frontend/src/lib/components/select/Select.svelte | 8 ++++---- frontend/src/lib/components/text_input/TextInput.svelte | 7 +++---- frontend/tailwind.config.cjs | 4 ++-- 5 files changed, 10 insertions(+), 13 deletions(-) diff --git a/frontend/src/lib/components/AIProviderPicker.svelte b/frontend/src/lib/components/AIProviderPicker.svelte index 01f9c41e87..69e544ba21 100644 --- a/frontend/src/lib/components/AIProviderPicker.svelte +++ b/frontend/src/lib/components/AIProviderPicker.svelte @@ -204,7 +204,7 @@ clearable={false} noItemsMsg={'No models available'} bind:filterText - inputClass="min-h-10 !bg-surface" + inputClass="min-h-10 !bg-surface disabled:!bg-surface-disabled" /> diff --git a/frontend/src/lib/components/flows/content/DynamicInputHelpBox.svelte b/frontend/src/lib/components/flows/content/DynamicInputHelpBox.svelte index 8628e2fcaa..9160611fbe 100644 --- a/frontend/src/lib/components/flows/content/DynamicInputHelpBox.svelte +++ b/frontend/src/lib/components/flows/content/DynamicInputHelpBox.svelte @@ -2,8 +2,6 @@ import Button from '$lib/components/common/button/Button.svelte' import { ChevronDown } from 'lucide-svelte' - import { slide } from 'svelte/transition' - $: opened = false diff --git a/frontend/src/lib/components/select/Select.svelte b/frontend/src/lib/components/select/Select.svelte index 807be3cb3b..826d586c3b 100644 --- a/frontend/src/lib/components/select/Select.svelte +++ b/frontend/src/lib/components/select/Select.svelte @@ -115,7 +115,7 @@ {:else if clearable && !disabled && value}
- +
{:else if RightIcon}
@@ -133,11 +133,11 @@ : (valueEntry?.label ?? getLabel({ value }) ?? placeholder)} style={containerStyle} class={twMerge( - '!bg-surface-secondary text-ellipsis focus:!ring-0', + 'no-default-style !bg-surface-secondary text-ellipsis focus:ring-0 disabled:cursor-not-allowed rounded-md text-sm w-full', inputBorderClass({ error, forceFocus: open }), open ? '' : 'cursor-pointer', - !loading && value ? '!placeholder-primary' : '', - (clearable || RightIcon) && !disabled && value ? '!pr-8' : '', + !loading && value ? 'placeholder-primary' : '', + (clearable || RightIcon) && !disabled && value ? 'pr-8' : '', inputClass ?? '' )} autocomplete="off" diff --git a/frontend/src/lib/components/text_input/TextInput.svelte b/frontend/src/lib/components/text_input/TextInput.svelte index 78fa611c58..ac2abe44ef 100644 --- a/frontend/src/lib/components/text_input/TextInput.svelte +++ b/frontend/src/lib/components/text_input/TextInput.svelte @@ -35,11 +35,10 @@