Skip to content

Commit

Permalink
chat list item style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
skang9810 committed Dec 19, 2024
1 parent 6eab40d commit f43e855
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/components/Chatting/modules/ListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,18 @@ const ListItem = ({ data, fetchList }) => {
)}

<Box display="flex" alignItems="center" justifyContent="space-between">
<Typography fontSize="14px" mb={1}>
<Typography
fontSize="14px"
mb={1}
sx={{
flexGrow: 1,
overflow: 'hidden',
textOverflow: 'ellipsis',
display: '-webkit-box',
WebkitBoxOrient: 'vertical',
WebkitLineClamp: 2,
}}
>
{data.lastMessage}
</Typography>
{!!data.unreadCount && (
Expand All @@ -103,6 +114,8 @@ const ListItem = ({ data, fetchList }) => {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
marginLeft: '8px',
flexShrink: 0,
}}
>
<Typography fontSize="12px" color="white" fontWeight="bold">
Expand Down

0 comments on commit f43e855

Please sign in to comment.