mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-11-11 06:12:03 +01:00
9 lines
263 B
TypeScript
9 lines
263 B
TypeScript
import { DEFAULT_MOBILE_BREAKPOINT } from '$lib/constants';
|
|
import { MediaQuery } from 'svelte/reactivity';
|
|
|
|
export class IsMobile extends MediaQuery {
|
|
constructor(breakpoint: number = DEFAULT_MOBILE_BREAKPOINT) {
|
|
super(`max-width: ${breakpoint - 1}px`);
|
|
}
|
|
}
|