-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed message wrap, added see all btn
- Loading branch information
1 parent
511e56f
commit f5922ec
Showing
5 changed files
with
71 additions
and
14 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
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,13 +1,15 @@ | ||
import { sideNavState } from "@/store/SideNavState"; | ||
import {sideNavState } from "@/store/SideNavState"; | ||
|
||
export const screenSize = () => { | ||
return window.innerWidth | ||
}; | ||
|
||
export let screenSize = window.innerWidth | ||
|
||
window.addEventListener("resize", (event) => { | ||
screenSize = window.innerWidth | ||
sideNavState.isVisible = isDesktop() | ||
sideNavState.isVisible = isDesktop(); | ||
}); | ||
|
||
|
||
export const isDesktop = () => { | ||
return screenSize >= 1024 | ||
} | ||
return screenSize() >= 1024 | ||
}; |