-
-
Notifications
You must be signed in to change notification settings - Fork 516
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
comment out svelte-legos as it doesn't support svelte5
- Loading branch information
Showing
3 changed files
with
20 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import { writable, type Writable } from 'svelte/store'; | ||
import { persisted } from 'svelte-local-storage-store'; | ||
import { mediaQuery } from 'svelte-legos'; | ||
//import { mediaQuery } from 'svelte-legos'; | ||
|
||
export const isSidebarOpen = persisted('sidebar-open', false); | ||
export const isPageWithSidebar: Writable<boolean> = writable(true); | ||
|
||
// Helper functions | ||
export const isSmallScreen = mediaQuery('(min-width: 640px)'); | ||
export const isMediumScreen = mediaQuery('(min-width: 768px)'); | ||
export const isLargeScreen = mediaQuery('(min-width: 1024px)'); | ||
export const isSmallScreen = writable(false); //mediaQuery('(min-width: 640px)'); | ||
export const isMediumScreen = writable(false); // mediaQuery('(min-width: 768px)'); | ||
export const isLargeScreen = writable(false); // mediaQuery('(min-width: 1024px)'); |