Disallow text selection in messages on mobile.
parent
6f08a70d15
commit
ea4c9abeaf
|
|
@ -6,6 +6,7 @@ import { decodeTime } from "ulid";
|
||||||
import { Text } from "preact-i18n";
|
import { Text } from "preact-i18n";
|
||||||
|
|
||||||
import { useDictionary } from "../../../lib/i18n";
|
import { useDictionary } from "../../../lib/i18n";
|
||||||
|
import { isTouchscreenDevice } from "../../../lib/isTouchscreenDevice";
|
||||||
|
|
||||||
import { dayjs } from "../../../context/Locale";
|
import { dayjs } from "../../../context/Locale";
|
||||||
|
|
||||||
|
|
@ -34,6 +35,10 @@ export default styled.div<BaseMessageProps>`
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
|
|
||||||
|
@media (pointer: coarse) {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.contrast &&
|
props.contrast &&
|
||||||
css`
|
css`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue