mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-22 20:37:48 +00:00
perf: long org name ui (#4347)
* sync collection * remove lock * perf: long org name ui
This commit is contained in:
@@ -44,6 +44,8 @@ const FolderPath = (props: {
|
|||||||
py={0.5}
|
py={0.5}
|
||||||
px={1.5}
|
px={1.5}
|
||||||
borderRadius={'md'}
|
borderRadius={'md'}
|
||||||
|
maxW={'45vw'}
|
||||||
|
className={'textEllipsis'}
|
||||||
{...(i === concatPaths.length - 1
|
{...(i === concatPaths.length - 1
|
||||||
? {
|
? {
|
||||||
cursor: 'default',
|
cursor: 'default',
|
||||||
|
@@ -11,7 +11,7 @@ function MemberTag({ name, avatar }: Props) {
|
|||||||
return (
|
return (
|
||||||
<HStack>
|
<HStack>
|
||||||
{avatar && <Avatar src={avatar} w={['18px', '22px']} rounded="50%" />}
|
{avatar && <Avatar src={avatar} w={['18px', '22px']} rounded="50%" />}
|
||||||
<Box maxW={'150px'} className={'textEllipsis'}>
|
<Box maxW={'45vw'} className={'textEllipsis'} fontSize={'sm'}>
|
||||||
{name || '-'}
|
{name || '-'}
|
||||||
</Box>
|
</Box>
|
||||||
</HStack>
|
</HStack>
|
||||||
|
@@ -289,7 +289,12 @@ function OrgTable({ Tabs }: { Tabs: React.ReactNode }) {
|
|||||||
<VStack w={'180px'} alignItems={'start'}>
|
<VStack w={'180px'} alignItems={'start'}>
|
||||||
<HStack gap={'6px'}>
|
<HStack gap={'6px'}>
|
||||||
<Avatar src={currentOrg.avatar} w={'1rem'} h={'1rem'} rounded={'xs'} />
|
<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}
|
{currentOrg.name}
|
||||||
</Box>
|
</Box>
|
||||||
{currentOrg?.path !== '' && (
|
{currentOrg?.path !== '' && (
|
||||||
|
Reference in New Issue
Block a user