Disallow text selection in messages on mobile.

This commit is contained in:
Paul 2021-08-02 13:06:18 +01:00
parent ab54afc1e0
commit 44b5725793

View file

@ -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`