mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-10 01:03:36 -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 { useState } from "preact/hooks";
|
||||||
|
|
||||||
import { internalEmit } from "../../../lib/eventEmitter";
|
import { internalEmit } from "../../../lib/eventEmitter";
|
||||||
|
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||||
|
|
||||||
import { QueuedMessage } from "../../../mobx/stores/MessageQueue";
|
import { QueuedMessage } from "../../../mobx/stores/MessageQueue";
|
||||||
|
|
||||||
|
@ -175,7 +176,9 @@ const Message = observer(
|
||||||
{message.embeds?.map((embed, index) => (
|
{message.embeds?.map((embed, index) => (
|
||||||
<Embed key={index} embed={embed} />
|
<Embed key={index} embed={embed} />
|
||||||
))}
|
))}
|
||||||
{mouseHovering && !replacement && (
|
{mouseHovering &&
|
||||||
|
!replacement &&
|
||||||
|
!isTouchscreenDevice && (
|
||||||
<MessageOverlayBar
|
<MessageOverlayBar
|
||||||
message={message}
|
message={message}
|
||||||
queued={queued}
|
queued={queued}
|
||||||
|
|
Loading…
Reference in a new issue