quick fix
This commit is contained in:
@@ -366,7 +366,7 @@ export function LeftBar() {
|
||||
const getMainNavStyles = () => {
|
||||
const baseStyles = {
|
||||
"transition-timing-function": "cubic-bezier(0.4, 0, 0.2, 1)",
|
||||
width: "250px",
|
||||
width: windowWidth() < 1536 ? "250px" : "288px",
|
||||
"padding-top": "env(safe-area-inset-top)",
|
||||
"padding-bottom": "env(safe-area-inset-bottom)"
|
||||
};
|
||||
|
||||
@@ -39,10 +39,10 @@ export function Btop(props: BtopProps) {
|
||||
|
||||
onMount(() => {
|
||||
if (typeof window !== "undefined") {
|
||||
setIsMobile(window.innerWidth < BREAKPOINTS.MOBILE);
|
||||
setIsMobile(window.innerWidth < BREAKPOINTS.MOBILE_MAX_WIDTH);
|
||||
|
||||
const handleResize = () => {
|
||||
setIsMobile(window.innerWidth < BREAKPOINTS.MOBILE);
|
||||
setIsMobile(window.innerWidth < BREAKPOINTS.MOBILE_MAX_WIDTH);
|
||||
};
|
||||
window.addEventListener("resize", handleResize);
|
||||
onCleanup(() => window.removeEventListener("resize", handleResize));
|
||||
|
||||
Reference in New Issue
Block a user