fix: rizna huyeta
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m40s
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m40s
This commit is contained in:
@@ -22,6 +22,9 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 320px;
|
max-width: 320px;
|
||||||
|
max-height: calc(
|
||||||
|
var(--safe-area-height) - var(--header-total) - var(--navigation-total) - 70px
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
@@ -29,9 +32,6 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-height: calc(
|
|
||||||
var(--safe-area-height) - var(--header-total) - var(--navigation-total) - 70px
|
|
||||||
);
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
padding: 13px;
|
padding: 13px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
background-image: url("./assets/main-bg.svg");
|
background-image: url("./assets/main-bg.png");
|
||||||
background-size: auto 101%;
|
background-size: auto 101%;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
BIN
src/routes/-/RootLayout/assets/main-bg.png
Normal file
BIN
src/routes/-/RootLayout/assets/main-bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 720 KiB |
@@ -168,6 +168,10 @@ export default function Navigation() {
|
|||||||
const [menuOpen, setMenuOpen] = useState<number>(0);
|
const [menuOpen, setMenuOpen] = useState<number>(0);
|
||||||
const navRef = useRef<HTMLDivElement>(null);
|
const navRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
|
const viewportHeight = useTelegramViewportValue("height");
|
||||||
|
const stableHeight = useTelegramViewportValue("stableHeight");
|
||||||
|
const isKeyboardVisible = stableHeight - viewportHeight > 100;
|
||||||
|
|
||||||
const handleOutsideClick = useCallback((e: MouseEvent) => {
|
const handleOutsideClick = useCallback((e: MouseEvent) => {
|
||||||
if (navRef.current && !navRef.current.contains(e.target as Node)) {
|
if (navRef.current && !navRef.current.contains(e.target as Node)) {
|
||||||
setMenuOpen(0);
|
setMenuOpen(0);
|
||||||
@@ -192,6 +196,8 @@ export default function Navigation() {
|
|||||||
setMenuOpen(0);
|
setMenuOpen(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (isKeyboardVisible) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={navRef}>
|
<div ref={navRef}>
|
||||||
<div className={classes.menuOverlay}>
|
<div className={classes.menuOverlay}>
|
||||||
|
|||||||
Reference in New Issue
Block a user