Skip to content

Commit

Permalink
Merge pull request #1196 from dm3-org/1193-new-msg-layout
Browse files Browse the repository at this point in the history
1193 new msg layout
  • Loading branch information
AlexNi245 authored Oct 11, 2024
2 parents 8710bb9 + 08e2180 commit 1318061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/messenger-widget/src/components/Message/Action.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export function Action(props: MessageProps) {
const [isHovered, setIsHovered] = useState(false);

const handleMouseOver = () => {
if (!props.envelop.metadata?.messageHash) {
return;
}
setIsHovered(true);
};

Expand All @@ -31,6 +34,7 @@ export function Action(props: MessageProps) {
<div
className={'msg-action-container d-flex pointer-cursor border-radius-3 position-relative'.concat(
' ',
!props.envelop.metadata?.messageHash ? 'invisible' : '',
selectedContact?.contactDetails.account.profile && !isMsgDeleted
? ''
: 'hide-action',
Expand Down

0 comments on commit 1318061

Please sign in to comment.