ensure margin properly applied (#3176)

* ensure margin properly applied

* formatting
This commit is contained in:
pablodanswer 2024-11-20 12:04:45 -08:00 committed by GitHub
parent e89dcd7f84
commit 0ff2565125
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 11 deletions

View File

@ -278,7 +278,6 @@ export function LLMProviderUpdateForm({
{!(hideAdvanced && llmProviderDescriptor.name != "azure") && (
<>
<Separator />
{llmProviderDescriptor.llm_names.length > 0 ? (
<SelectorFormField
name="default_model_name"
@ -298,7 +297,6 @@ export function LLMProviderUpdateForm({
placeholder="E.g. gpt-4"
/>
)}
{llmProviderDescriptor.deployment_name_required && (
<TextFormField
small={hideAdvanced}
@ -307,7 +305,6 @@ export function LLMProviderUpdateForm({
placeholder="Deployment Name"
/>
)}
{!llmProviderDescriptor.single_model_supported &&
(llmProviderDescriptor.llm_names.length > 0 ? (
<SelectorFormField
@ -344,7 +341,6 @@ export function LLMProviderUpdateForm({
/>
</>
)}
{showAdvancedOptions && (
<>
{llmProviderDescriptor.llm_names.length > 0 && (

View File

@ -20,7 +20,7 @@ export function AdvancedOptionsToggle({
size="sm"
icon={showAdvancedOptions ? FiChevronDown : FiChevronRight}
onClick={() => setShowAdvancedOptions(!showAdvancedOptions)}
className="text-xs !p-0 text-text-950 hover:text-text-500"
className="text-xs mr-auto !p-0 text-text-950 hover:text-text-500"
>
{title || "Advanced Options"}
</Button>

View File

@ -211,12 +211,7 @@ export function TextFormField({
<div className={`w-full ${width}`}>
<div className="flex gap-x-2 items-center">
{!removeLabel && (
<Label
className={`${
small ? "text-text-950" : "text-text-700 font-normal"
} ${sizeClass.label}`}
small={small}
>
<Label className={sizeClass.label} small={small}>
{label}
</Label>
)}