refactor: Media queries (#2680)

This commit is contained in:
Jed Fox 2020-12-27 16:27:25 -05:00 committed by GitHub
parent 6f82a88b79
commit b8d13c98b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 21 additions and 17 deletions

View file

@ -11,6 +11,7 @@ export const IsMobileProvider = ({
if (!query.current) {
query.current = window.matchMedia
? window.matchMedia(
// keep up to date with _variables.scss
"(max-width: 640px), (max-height: 500px) and (max-width: 1000px)",
)
: (({