Browse Source

fix: adjust column spans in JSONEditor for better layout #1719

Seefs 3 months ago
parent
commit
faad6bcd0c
2 changed files with 3 additions and 3 deletions
  1. 1 1
      controller/model.go
  2. 2 2
      web/src/components/common/ui/JSONEditor.jsx

+ 1 - 1
controller/model.go

@@ -207,7 +207,7 @@ func ListModels(c *gin.Context, modelType int) {
 		c.JSON(200, gin.H{
 			"success": true,
 			"data":    userOpenAiModels,
-      "object":  "list",
+			"object":  "list",
 		})
 	}
 }

+ 2 - 2
web/src/components/common/ui/JSONEditor.jsx

@@ -443,7 +443,7 @@ const JSONEditor = ({
 
           return (
             <Row key={pair.id} gutter={8} align='middle'>
-              <Col span={6}>
+              <Col span={10}>
                 <div className='relative'>
                   <Input
                     placeholder={t('键名')}
@@ -470,7 +470,7 @@ const JSONEditor = ({
                   )}
                 </div>
               </Col>
-              <Col span={16}>{renderValueInput(pair.id, pair.value)}</Col>
+              <Col span={12}>{renderValueInput(pair.id, pair.value)}</Col>
               <Col span={2}>
                 <Button
                   icon={<IconDelete />}