Skip to content

Commit 9e78205

Browse files
committed
change convo list item name
1 parent 4a556a7 commit 9e78205

File tree

1 file changed

+7
-20
lines changed

1 file changed

+7
-20
lines changed

apps/web/src/app/[orgShortcode]/convo/_components/convo-list-item.tsx

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -160,34 +160,21 @@ export const ConvoItem = memo(function ConvoItem({
160160
)}
161161
<div className="flex w-[90%] flex-1 flex-col">
162162
<div className="flex flex-row items-end justify-between gap-1">
163-
<span className="truncate text-sm font-medium">
164-
{participantNames.join(', ')}
163+
<span className="truncate break-all text-left font-medium">
164+
{convo.subjects[0]?.subject}
165165
</span>
166166
<span className="text-base-11 min-w-fit text-right text-xs">
167167
{timeAgo}
168168
</span>
169169
</div>
170-
171-
<span className="truncate break-all text-left text-xs font-medium">
172-
{convo.subjects[0]?.subject}
170+
<span className="truncate text-xs font-medium">
171+
{participantNames.join(', ')}
173172
</span>
174173

175174
<div className="flex flex-row items-start justify-start gap-1 text-left text-sm">
176-
<div className="px-0.5">
177-
{authorAvatarData && (
178-
<Avatar
179-
avatarProfilePublicId={
180-
authorAvatarData.avatarProfilePublicId
181-
}
182-
avatarTimestamp={authorAvatarData.avatarTimestamp}
183-
name={authorAvatarData.name}
184-
size={'sm'}
185-
color={authorAvatarData.color}
186-
key={authorAvatarData.participantPublicId}
187-
/>
188-
)}
189-
</div>
190-
175+
<span className="ph-no-capture font-semibold">
176+
{authorAvatarData?.name + ':' ?? ''}
177+
</span>
191178
<span className="ph-no-capture line-clamp-2 overflow-clip break-words">
192179
{convo.entries[0]?.bodyPlainText.trim() ?? ''}
193180
</span>

0 commit comments

Comments
 (0)