Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
40831267
authored
Sep 02, 2025
by
Seefs
Committed by
GitHub
Sep 02, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1733 from seefs001/fix/jsoneditor
fix: adjust column spans in JSONEditor for better layout #1719
parents
ada7b968
d1fc9bd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
controller/model.go
+1
-1
web/src/components/common/ui/JSONEditor.jsx
+2
-2
No files found.
controller/model.go
View file @
40831267
...
...
@@ -207,7 +207,7 @@ func ListModels(c *gin.Context, modelType int) {
c
.
JSON
(
200
,
gin
.
H
{
"success"
:
true
,
"data"
:
userOpenAiModels
,
"object"
:
"list"
,
"object"
:
"list"
,
})
}
}
...
...
web/src/components/common/ui/JSONEditor.jsx
View file @
40831267
...
...
@@ -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=
{
1
6
}
>
{
renderValueInput
(
pair
.
id
,
pair
.
value
)
}
</
Col
>
<
Col
span=
{
1
2
}
>
{
renderValueInput
(
pair
.
id
,
pair
.
value
)
}
</
Col
>
<
Col
span=
{
2
}
>
<
Button
icon=
{
<
IconDelete
/>
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment