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
49bee95b
authored
Nov 07, 2024
by
Jiangween
Committed by
GitHub
Nov 07, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize InputDataModal and useEditTitle in main project (#3086)
parent
0645b274
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
projects/app/src/pages/dataset/detail/components/InputDataModal.tsx
+4
-1
projects/app/src/web/common/hooks/useEditTitle.tsx
+1
-1
No files found.
projects/app/src/pages/dataset/detail/components/InputDataModal.tsx
View file @
49bee95b
...
@@ -260,9 +260,12 @@ const InputDataModal = ({
...
@@ -260,9 +260,12 @@ const InputDataModal = ({
className=
{
'textEllipsis'
}
className=
{
'textEllipsis'
}
wordBreak=
{
'break-all'
}
wordBreak=
{
'break-all'
}
fontSize=
{
'md'
}
fontSize=
{
'md'
}
maxW=
{
[
'200px'
,
'
8
0vw'
]
}
maxW=
{
[
'200px'
,
'
5
0vw'
]
}
fontWeight=
{
'500'
}
fontWeight=
{
'500'
}
color=
{
'myGray.900'
}
color=
{
'myGray.900'
}
whiteSpace=
{
'nowrap'
}
overflow=
{
'hidden'
}
textOverflow=
{
'ellipsis'
}
>
>
{
collection
.
sourceName
||
t
(
'common:common.UnKnow Source'
)
}
{
collection
.
sourceName
||
t
(
'common:common.UnKnow Source'
)
}
</
Box
>
</
Box
>
...
...
projects/app/src/web/common/hooks/useEditTitle.tsx
View file @
49bee95b
...
@@ -76,7 +76,7 @@ export const useEditTitle = ({
...
@@ -76,7 +76,7 @@ export const useEditTitle = ({
// eslint-disable-next-line react/display-name
// eslint-disable-next-line react/display-name
const
EditModal
=
useCallback
(
const
EditModal
=
useCallback
(
({
({
maxLength
=
3
0
,
maxLength
=
5
0
,
iconSrc
=
'modal/edit'
,
iconSrc
=
'modal/edit'
,
closeBtnText
=
t
(
'common:common.Close'
)
closeBtnText
=
t
(
'common:common.Close'
)
}:
{
}:
{
...
...
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