fix(bot): mobile keyboard covering input

This commit is contained in:
Baptiste Arnaud
2022-07-17 18:20:53 +02:00
parent b62b955c07
commit f1a01bf663
2 changed files with 6 additions and 2 deletions

View File

@@ -5,3 +5,7 @@ export const sanitizeUrl = (url: string): string =>
url.startsWith('sms:')
? url
: `https://${url}`
export const isMobile =
typeof window !== 'undefined' &&
window.matchMedia('only screen and (max-width: 760px)').matches