mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 15:35:55 +01:00
💄 Disable item selection on mobile
Fixed Disable text selection in iOS (touch devices) #166
This commit is contained in:
@@ -15,6 +15,9 @@ const useStyles = createStyles((theme) => ({
|
|||||||
boxShadow: `${theme.shadows.md} !important`,
|
boxShadow: `${theme.shadows.md} !important`,
|
||||||
transform: 'scale(1.05)',
|
transform: 'scale(1.05)',
|
||||||
},
|
},
|
||||||
|
[theme.fn.smallerThan('sm')]: {
|
||||||
|
WebkitUserSelect: 'none',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
@@ -38,7 +41,7 @@ export function SortableAppShelfItem(props: any) {
|
|||||||
export function AppShelfItem(props: any) {
|
export function AppShelfItem(props: any) {
|
||||||
const { service }: { service: serviceItem } = props;
|
const { service }: { service: serviceItem } = props;
|
||||||
const [hovering, setHovering] = useState(false);
|
const [hovering, setHovering] = useState(false);
|
||||||
const { classes, theme } = useStyles();
|
const { classes } = useStyles();
|
||||||
return (
|
return (
|
||||||
<motion.div
|
<motion.div
|
||||||
animate={{
|
animate={{
|
||||||
|
|||||||
Reference in New Issue
Block a user