mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 12:20:34 +00:00
Optimize InputDataModal and useEditTitle in main project (#3086)
This commit is contained in:
@@ -260,9 +260,12 @@ const InputDataModal = ({
|
||||
className={'textEllipsis'}
|
||||
wordBreak={'break-all'}
|
||||
fontSize={'md'}
|
||||
maxW={['200px', '80vw']}
|
||||
maxW={['200px', '50vw']}
|
||||
fontWeight={'500'}
|
||||
color={'myGray.900'}
|
||||
whiteSpace={'nowrap'}
|
||||
overflow={'hidden'}
|
||||
textOverflow={'ellipsis'}
|
||||
>
|
||||
{collection.sourceName || t('common:common.UnKnow Source')}
|
||||
</Box>
|
||||
|
@@ -76,7 +76,7 @@ export const useEditTitle = ({
|
||||
// eslint-disable-next-line react/display-name
|
||||
const EditModal = useCallback(
|
||||
({
|
||||
maxLength = 30,
|
||||
maxLength = 50,
|
||||
iconSrc = 'modal/edit',
|
||||
closeBtnText = t('common:common.Close')
|
||||
}: {
|
||||
|
Reference in New Issue
Block a user