Skip to content

Commit e6efd33

Browse files
authored
perf: long org name ui (#4347)
* sync collection * remove lock * perf: long org name ui
1 parent 95ffd71 commit e6efd33

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

projects/app/src/components/common/folder/Path.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ const FolderPath = (props: {
4444
py={0.5}
4545
px={1.5}
4646
borderRadius={'md'}
47+
maxW={'45vw'}
48+
className={'textEllipsis'}
4749
{...(i === concatPaths.length - 1
4850
? {
4951
cursor: 'default',

projects/app/src/components/support/user/team/Info/MemberTag.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function MemberTag({ name, avatar }: Props) {
1111
return (
1212
<HStack>
1313
{avatar && <Avatar src={avatar} w={['18px', '22px']} rounded="50%" />}
14-
<Box maxW={'150px'} className={'textEllipsis'}>
14+
<Box maxW={'45vw'} className={'textEllipsis'} fontSize={'sm'}>
1515
{name || '-'}
1616
</Box>
1717
</HStack>

projects/app/src/pageComponents/account/team/OrgManage/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,12 @@ function OrgTable({ Tabs }: { Tabs: React.ReactNode }) {
289289
<VStack w={'180px'} alignItems={'start'}>
290290
<HStack gap={'6px'}>
291291
<Avatar src={currentOrg.avatar} w={'1rem'} h={'1rem'} rounded={'xs'} />
292-
<Box fontWeight={500} color={'myGray.900'}>
292+
<Box
293+
title={currentOrg.name}
294+
fontWeight={500}
295+
color={'myGray.900'}
296+
className="textEllipsis3"
297+
>
293298
{currentOrg.name}
294299
</Box>
295300
{currentOrg?.path !== '' && (

0 commit comments

Comments
 (0)