Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
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
Unverified
Commit
e2ca301c
authored
Jul 08, 2026
by
Finley Ge
Committed by
GitHub
Jul 08, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(marketplace): unify tool grid columns (#7278)
parent
051a9f21
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
projects/app/src/pages/config/tool/marketplace.tsx
+3
-1
projects/marketplace/src/pages/index.tsx
+3
-1
No files found.
projects/app/src/pages/config/tool/marketplace.tsx
View file @
e2ca301c
...
...
@@ -46,6 +46,8 @@ import { useToast } from '@fastgpt/web/hooks/useToast';
type
QueryValue
=
string
|
string
[]
|
undefined
;
type
QueryRecord
=
Record
<
string
,
QueryValue
>
;
const
TOOL_GRID_TEMPLATE_COLUMNS
=
'repeat(auto-fill, minmax(min(max(260px, calc((100% - 6.25rem) / 6)), 100%), 1fr))'
;
const
getComparableQueryValue
=
(
value
:
QueryValue
)
=>
Array
.
isArray
(
value
)
?
value
.
join
(
'\0'
)
:
(
value
??
''
);
...
...
@@ -867,7 +869,7 @@ const ToolkitMarketplace = ({ marketplaceUrl }: { marketplaceUrl: string }) => {
</
Flex
>
{
displayTools
.
length
>
0
?
(
<
Grid
gridTemplateColumns=
{
'repeat(auto-fill, minmax(min(260px, 100%), 1fr))'
}
gridTemplateColumns=
{
TOOL_GRID_TEMPLATE_COLUMNS
}
gridGap=
{
5
}
alignItems=
{
'stretch'
}
>
...
...
projects/marketplace/src/pages/index.tsx
View file @
e2ca301c
...
...
@@ -65,6 +65,8 @@ const isSameBrowserUrl = (nextUrl: string) => {
targetUrl
.
pathname
===
window
.
location
.
pathname
&&
targetUrl
.
search
===
window
.
location
.
search
);
};
const
TOOL_GRID_TEMPLATE_COLUMNS
=
'repeat(auto-fill, minmax(min(max(260px, calc((100% - 6.25rem) / 6)), 100%), 1fr))'
;
const
ToolkitMarketplace
=
()
=>
{
const
{
t
,
i18n
}
=
useTranslation
();
...
...
@@ -626,7 +628,7 @@ const ToolkitMarketplace = () => {
{
displayTools
.
length
>
0
?
(
<
Grid
ref=
{
gridRef
}
gridTemplateColumns=
{
'repeat(auto-fill, minmax(min(260px, 100%), 1fr))'
}
gridTemplateColumns=
{
TOOL_GRID_TEMPLATE_COLUMNS
}
gridGap=
{
5
}
alignItems=
{
'stretch'
}
>
...
...
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