-
Notifications
You must be signed in to change notification settings - Fork 2
Changed isMobileScreen to isLargeScreen and fixed sizes #1691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,8 +32,8 @@ const windowWidth = ref(window.innerWidth); | |
| window.addEventListener("resize", () => { | ||
| windowWidth.value = window.innerWidth; | ||
| }); | ||
| export const isMobileScreen = computed(() => windowWidth.value < 1024); | ||
| export const isSmallScreen = computed(() => windowWidth.value < 1500); | ||
| export const isLargeScreen = computed(() => windowWidth.value < 1024); | ||
| export const isSmallScreen = computed(() => windowWidth.value < 640); | ||
|
Comment on lines
+35
to
+36
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Need to rethink this. Perhaps better to use the Tailwind breakpoints instead of a pixel value (see how it is done in Basepage) Perhaps just export the breakpoints variable, and use e.g. breakpoints.smaller("lg") in the actual code where we need to determine the screen size programatically |
||
| export const sidebarSectionExpanded = ref({ posts: false, tags: false, access: false }); | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.