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