mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 20:08:36 +02:00
ensure margin properly applied (#3176)
* ensure margin properly applied * formatting
This commit is contained in:
parent
e89dcd7f84
commit
0ff2565125
@ -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 && (
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user