Commit f3a069bc by Archer Committed by archer

perf: long org name ui (#4347)

* sync collection

* remove lock

* perf: long org name ui
parent 2ebb2ccc
......@@ -44,6 +44,8 @@ const FolderPath = (props: {
py={0.5}
px={1.5}
borderRadius={'md'}
maxW={'45vw'}
className={'textEllipsis'}
{...(i === concatPaths.length - 1
? {
cursor: 'default',
......
......@@ -11,7 +11,7 @@ function MemberTag({ name, avatar }: Props) {
return (
<HStack>
{avatar && <Avatar src={avatar} w={['18px', '22px']} rounded="50%" />}
<Box maxW={'150px'} className={'textEllipsis'}>
<Box maxW={'45vw'} className={'textEllipsis'} fontSize={'sm'}>
{name || '-'}
</Box>
</HStack>
......
......@@ -289,7 +289,12 @@ function OrgTable({ Tabs }: { Tabs: React.ReactNode }) {
<VStack w={'180px'} alignItems={'start'}>
<HStack gap={'6px'}>
<Avatar src={currentOrg.avatar} w={'1rem'} h={'1rem'} rounded={'xs'} />
<Box fontWeight={500} color={'myGray.900'}>
<Box
title={currentOrg.name}
fontWeight={500}
color={'myGray.900'}
className="textEllipsis3"
>
{currentOrg.name}
</Box>
{currentOrg?.path !== '' && (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment