fix: rizna huyeta
All checks were successful
Deploy to VPS (dist) / deploy (push) Successful in 1m40s

This commit is contained in:
Hewston Fox
2026-03-22 16:26:38 +02:00
parent 2c072f1474
commit 3c646bc5ac
4 changed files with 10 additions and 4 deletions

View File

@@ -22,6 +22,9 @@
align-items: center;
width: 100%;
max-width: 320px;
max-height: calc(
var(--safe-area-height) - var(--header-total) - var(--navigation-total) - 70px
);
}
.modal {
@@ -29,9 +32,6 @@
flex-direction: column;
gap: 6px;
width: 100%;
max-height: calc(
var(--safe-area-height) - var(--header-total) - var(--navigation-total) - 70px
);
overflow: auto;
padding: 13px;
}

View File

@@ -4,7 +4,7 @@
height: 100%;
width: 100%;
background-image: url("./assets/main-bg.svg");
background-image: url("./assets/main-bg.png");
background-size: auto 101%;
background-position: center;
overflow: hidden;

Binary file not shown.

After

Width:  |  Height:  |  Size: 720 KiB

View File

@@ -168,6 +168,10 @@ export default function Navigation() {
const [menuOpen, setMenuOpen] = useState<number>(0);
const navRef = useRef<HTMLDivElement>(null);
const viewportHeight = useTelegramViewportValue("height");
const stableHeight = useTelegramViewportValue("stableHeight");
const isKeyboardVisible = stableHeight - viewportHeight > 100;
const handleOutsideClick = useCallback((e: MouseEvent) => {
if (navRef.current && !navRef.current.contains(e.target as Node)) {
setMenuOpen(0);
@@ -192,6 +196,8 @@ export default function Navigation() {
setMenuOpen(0);
};
if (isKeyboardVisible) return null;
return (
<div ref={navRef}>
<div className={classes.menuOverlay}>