From 21420bc2db178fc8814d8edd3955205925199f8c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 21 Nov 2020 16:49:51 +0100 Subject: handheld should go up to 760 pixels on a side, or so. ipad is 768, iphone pro is 736. make corner section link text open the nav... --- animism-align/frontend/app/utils/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'animism-align/frontend/app/utils/index.js') diff --git a/animism-align/frontend/app/utils/index.js b/animism-align/frontend/app/utils/index.js index 4519861..016bb76 100644 --- a/animism-align/frontend/app/utils/index.js +++ b/animism-align/frontend/app/utils/index.js @@ -16,8 +16,8 @@ export const isiPhone = !!((navigator.userAgent.match(/iPhone/i)) || (navigator. export const isiPad = !!(navigator.userAgent.match(/iPad/i)) export const isAndroid = !!(navigator.userAgent.match(/Android/i)) export const isMobile = isiPhone || isiPad || isAndroid -export const isHandheld = isiPhone || (isAndroid && window.innerWidth <= 640) -export const isTablet = isMobile && window.innerWidth > 640 +export const isHandheld = isiPhone || (isAndroid && window.innerWidth <= 760) +export const isTablet = isMobile && window.innerWidth > 760 export const isDesktop = !isMobile const htmlClassList = document.body.parentNode.classList -- cgit v1.2.3-70-g09d2