mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
fix(messaging): hide overlay on mobile
This commit is contained in:
parent
8bda3123da
commit
7e4f4cf001
1 changed files with 9 additions and 6 deletions
|
@ -6,6 +6,7 @@ import { memo } from "preact/compat";
|
|||
import { useState } from "preact/hooks";
|
||||
|
||||
import { internalEmit } from "../../../lib/eventEmitter";
|
||||
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||
|
||||
import { QueuedMessage } from "../../../mobx/stores/MessageQueue";
|
||||
|
||||
|
@ -175,12 +176,14 @@ const Message = observer(
|
|||
{message.embeds?.map((embed, index) => (
|
||||
<Embed key={index} embed={embed} />
|
||||
))}
|
||||
{mouseHovering && !replacement && (
|
||||
<MessageOverlayBar
|
||||
message={message}
|
||||
queued={queued}
|
||||
/>
|
||||
)}
|
||||
{mouseHovering &&
|
||||
!replacement &&
|
||||
!isTouchscreenDevice && (
|
||||
<MessageOverlayBar
|
||||
message={message}
|
||||
queued={queued}
|
||||
/>
|
||||
)}
|
||||
</MessageContent>
|
||||
</MessageBase>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue