You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This feature already exists in shadcn/ui - if not, it won't be considered here so don't continue with your issue.
Describe the feature
Why not make is-mobile.svelte.ts file smaller using MediaQuery from svelte/reactivity.
import{MediaQuery}from"svelte/reactivity";constMOBILE_BREAKPOINT=768;exportclassIsMobile{/** Indicate if we are on mobile screen size (700px) or less */current=$derived(newMediaQuery(`(max-width: ${MOBILE_BREAKPOINT-1}px)`).current);}
Prerequisites
Describe the feature
Why not make
is-mobile.svelte.ts
file smaller usingMediaQuery
fromsvelte/reactivity
.current way
The text was updated successfully, but these errors were encountered: