feat(frontend): open sidebar media on click, unbreak long-press menus
This commit is contained in:
1 parent
12cc7d57e3
commit
004fd56f2c
5 files changed
+156
-39
No files matched your search
@@ -0,0 +1,7 @@
|
||||
import { browser } from "$app/environment";
|
||||
|
||||
const MOBILE_QUERY = "(max-width: 600px)";
|
||||
|
||||
export function isMobile(): boolean {
|
||||
return browser && window.matchMedia(MOBILE_QUERY).matches;
|
||||
}
|
||||
Reference in new issue
Block a user