mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-21 16:25:36 +02:00
10 lines
206 B
TypeScript
10 lines
206 B
TypeScript
import {MediaQuery} from "svelte/reactivity";
|
|
|
|
const MOBILE_BREAKPOINT = 768;
|
|
|
|
export class IsMobile extends MediaQuery {
|
|
constructor() {
|
|
super(`max-width: ${MOBILE_BREAKPOINT - 1}px`);
|
|
}
|
|
}
|