Skip to content

Commit

Permalink
Optimize InputDataModal and useEditTitle in main project (#3086)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiangween authored Nov 7, 2024
1 parent 0645b27 commit 49bee95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/web/common/hooks/useEditTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}: {
Expand Down

0 comments on commit 49bee95

Please sign in to comment.