feat(frontend): open sidebar media on click, unbreak long-press menus

This commit is contained in:
hh
2026-08-06 15:17:25 +02:00
parent 12cc7d57e3
commit 004fd56f2c
5 changed files with 156 additions and 39 deletions
+7
View File
@@ -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;
}