Skip to content

Commit 4b9524a

Browse files
committed
fix: text width
1 parent dcb4fe7 commit 4b9524a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

projects/app/src/pageComponents/app/detail/SimpleApp/components/ToolSelectModal.tsx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -408,17 +408,15 @@ const RenderList = React.memo(function RenderList({
408408
borderRadius={'sm'}
409409
flexShrink={0}
410410
/>
411-
<Box
412-
px={3}
413-
color={'myGray.900'}
414-
fontWeight={'500'}
415-
fontSize={'sm'}
416-
maxW={'180px'}
417-
whiteSpace={'nowrap'}
418-
overflow={'hidden'}
419-
textOverflow={'ellipsis'}
420-
>
421-
{t(parseI18nString(template.name, i18n.language))}
411+
<Box flex={'1 0 0'} ml={3}>
412+
<Box
413+
color={'myGray.900'}
414+
fontWeight={'500'}
415+
fontSize={'sm'}
416+
className="textEllipsis"
417+
>
418+
{t(parseI18nString(template.name, i18n.language))}
419+
</Box>
422420
</Box>
423421
<Box flex={1} />
424422

0 commit comments

Comments
 (0)