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

View File

@ -20,7 +20,7 @@ export function AdvancedOptionsToggle({
size="sm" size="sm"
icon={showAdvancedOptions ? FiChevronDown : FiChevronRight} icon={showAdvancedOptions ? FiChevronDown : FiChevronRight}
onClick={() => setShowAdvancedOptions(!showAdvancedOptions)} 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"} {title || "Advanced Options"}
</Button> </Button>

View File

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