mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-12 09:00:53 +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") && (
|
{!(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 && (
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user