Skip to content

Commit

Permalink
style: update message item for delete messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aseerkt committed Aug 6, 2024
1 parent bcca27b commit 7dd8cb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/features/message/components/MessageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const MessageItem = forwardRef<HTMLDivElement, MessageItemProps>(
<div
className={cn(
'min-w-36 rounded-lg border p-2 pb-1 shadow group-focus-within/block:ring group-focus/block:ring',
isCurrentUser && 'bg-cyan-100',
isCurrentUser ? 'bg-cyan-100' : 'bg-white',
message.isDeleted && 'bg-gray-100',
)}
>
Expand All @@ -52,7 +52,7 @@ export const MessageItem = forwardRef<HTMLDivElement, MessageItemProps>(
{message.username}
</b>
)}
{message.parentMessage?.id && (
{message.parentMessage?.id && !message.isDeleted && (
<div
role='button'
onClick={() =>
Expand Down

0 comments on commit 7dd8cb5

Please sign in to comment.