mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 15:12:08 -05:00
Disallow text selection in messages on mobile.
This commit is contained in:
parent
ab54afc1e0
commit
44b5725793
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@ import { decodeTime } from "ulid";
|
|||
import { Text } from "preact-i18n";
|
||||
|
||||
import { useDictionary } from "../../../lib/i18n";
|
||||
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||
|
||||
import { dayjs } from "../../../context/Locale";
|
||||
|
||||
|
@ -34,6 +35,10 @@ export default styled.div<BaseMessageProps>`
|
|||
flex-direction: row;
|
||||
padding-right: 16px;
|
||||
|
||||
@media (pointer: coarse) {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
${(props) =>
|
||||
props.contrast &&
|
||||
css`
|
||||
|
|
Loading…
Reference in a new issue