Web: Components: Utils: fix isMobile

This commit is contained in:
Viktor Fomin 2022-04-26 15:28:03 +03:00
parent 7b8ab2386e
commit ef92cd321b

View File

@ -14,7 +14,7 @@ export const tablet = `(max-width: ${size.tablet}px)`;
export const desktop = `(min-width: ${size.desktop}px)`;
export const isMobile = () => {
return window.innerWidth < size.mobile;
return window.innerWidth <= size.mobile;
};
export const isSmallTablet = () => {