Skip to content
Snippets Groups Projects
Commit 44b57257 authored by insert's avatar insert
Browse files

Disallow text selection in messages on mobile.

parent ab54afc1
Branches
No related merge requests found
......@@ -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`
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment