mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-10-26 01:34:51 +08:00
fix(ui): reduce provider editor empty space (#6199)
This commit is contained in:
1 parent
7de63227d4
commit
bc7f5f413a
6 files changed
+10
-10
No files matched your search
@@ -29,7 +29,7 @@ const JsonEditor: React.FC<JsonEditorProps> = ({
|
||||
onChange,
|
||||
placeholder: placeholderText = "",
|
||||
darkMode = false,
|
||||
rows = 12,
|
||||
rows = 3,
|
||||
showValidation = true,
|
||||
language = "json",
|
||||
height,
|
||||
|
||||
@@ -81,7 +81,7 @@ export const CodexAuthSection: React.FC<CodexAuthSectionProps> = ({
|
||||
onChange={handleChange}
|
||||
placeholder={t("codexConfig.authJsonPlaceholder")}
|
||||
darkMode={isDarkMode}
|
||||
rows={6}
|
||||
rows={3}
|
||||
showValidation={true}
|
||||
language="json"
|
||||
/>
|
||||
@@ -364,7 +364,7 @@ export const CodexConfigSection: React.FC<CodexConfigSectionProps> = ({
|
||||
onChange={handleLocalChange}
|
||||
placeholder=""
|
||||
darkMode={isDarkMode}
|
||||
rows={8}
|
||||
rows={3}
|
||||
showValidation={false}
|
||||
language="javascript"
|
||||
/>
|
||||
|
||||
@@ -257,7 +257,7 @@ export function CommonConfigEditor({
|
||||
}
|
||||
}`}
|
||||
darkMode={isDarkMode}
|
||||
rows={14}
|
||||
rows={3}
|
||||
showValidation={true}
|
||||
language="json"
|
||||
/>
|
||||
|
||||
@@ -99,7 +99,7 @@ export const GeminiEnvSection: React.FC<GeminiEnvSectionProps> = ({
|
||||
GEMINI_API_KEY=sk-your-api-key-here
|
||||
GEMINI_MODEL=gemini-3.6-flash`}
|
||||
darkMode={isDarkMode}
|
||||
rows={6}
|
||||
rows={3}
|
||||
showValidation={false}
|
||||
language="javascript"
|
||||
/>
|
||||
@@ -170,7 +170,7 @@ export const GeminiConfigSection: React.FC<GeminiConfigSectionProps> = ({
|
||||
"maxRetries": 3
|
||||
}`}
|
||||
darkMode={isDarkMode}
|
||||
rows={8}
|
||||
rows={3}
|
||||
showValidation={true}
|
||||
language="json"
|
||||
/>
|
||||
|
||||
@@ -573,7 +573,7 @@ export function GrokBuildProviderForm({
|
||||
onChange={handleRawConfigChange}
|
||||
placeholder=""
|
||||
darkMode={isDarkMode}
|
||||
rows={12}
|
||||
rows={3}
|
||||
showValidation={false}
|
||||
language="javascript"
|
||||
/>
|
||||
|
||||
@@ -2503,7 +2503,7 @@ function ProviderFormFull({
|
||||
<JsonEditor
|
||||
value={omoDraft.mergedOmoJsonPreview}
|
||||
onChange={() => {}}
|
||||
rows={14}
|
||||
rows={3}
|
||||
showValidation={false}
|
||||
language="json"
|
||||
darkMode={isDarkMode}
|
||||
@@ -2528,7 +2528,7 @@ function ProviderFormFull({
|
||||
},
|
||||
"models": {}
|
||||
}`}
|
||||
rows={14}
|
||||
rows={3}
|
||||
showValidation={true}
|
||||
language="json"
|
||||
darkMode={isDarkMode}
|
||||
@@ -2559,7 +2559,7 @@ function ProviderFormFull({
|
||||
"models": []
|
||||
}`
|
||||
}
|
||||
rows={14}
|
||||
rows={3}
|
||||
showValidation={true}
|
||||
language="json"
|
||||
darkMode={isDarkMode}
|
||||
|
||||
Reference in new issue
Block a user