forked from abner/for-legacy-web
Disallow text selection in messages on mobile.
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user