fix: chat sidebar layout

This commit is contained in:
Sergey Yarkov 2022-03-01 22:43:40 +03:00
parent a773884b8a
commit a6e3e5f88e

View File

@ -15,8 +15,8 @@ const Info: React.FC<IInfoProps> = ({ fullname, lastMessage }) => {
const isMe = me?.fullname === fullname;
return (
<Box ml='4'>
<Text fontWeight={'semibold'}>
<Box ml='4' maxW='200px'>
<Text fontWeight={'semibold'} textOverflow={'ellipsis'} overflow={'hidden'} whiteSpace='nowrap'>
{isMe ? 'Favorites' : fullname} <br />
{lastMessage && (
<Text as={'span'} fontWeight='normal' fontSize={'sm'} color='gray.500'>