💄 Disable item selection on mobile

Fixed Disable text selection in iOS (touch devices) #166
This commit is contained in:
ajnart
2022-06-06 17:37:42 +02:00
parent 2966be4fc4
commit 2594a7caa5

View File

@@ -15,6 +15,9 @@ const useStyles = createStyles((theme) => ({
boxShadow: `${theme.shadows.md} !important`,
transform: 'scale(1.05)',
},
[theme.fn.smallerThan('sm')]: {
WebkitUserSelect: 'none',
},
},
}));
@@ -38,7 +41,7 @@ export function SortableAppShelfItem(props: any) {
export function AppShelfItem(props: any) {
const { service }: { service: serviceItem } = props;
const [hovering, setHovering] = useState(false);
const { classes, theme } = useStyles();
const { classes } = useStyles();
return (
<motion.div
animate={{