Truncate group name in panels

This commit is contained in:
Chewbacca
2023-05-23 12:32:55 -04:00
parent 5c069b8b93
commit c8ff9db879
4 changed files with 10 additions and 7 deletions

View File

@ -22,17 +22,18 @@ const GroupListItem = (props: IGroup) => {
justifyContent='between'
data-testid='group-list-item'
>
<Link key={group.id} to={`/group/${group.slug}`}>
<Link key={group.id} to={`/group/${group.slug}`} className='overflow-hidden'>
<HStack alignItems='center' space={2}>
<GroupAvatar
group={group}
size={44}
/>
<Stack>
<Stack className='overflow-hidden'>
<Text
weight='bold'
dangerouslySetInnerHTML={{ __html: group.display_name_html }}
truncate
/>
<HStack className='text-gray-700 dark:text-gray-600' space={1} alignItems='center'>