广告修改

This commit is contained in:
谢宇宁
2026-10-28 17:07:32 +07:00
parent d5d28c92ce
commit 654257a2d2
45 changed files with 363 additions and 576 deletions
+3 -3
View File
@@ -6,6 +6,7 @@ import { useEffect, useState, type ReactNode } from "react";
import { openAppDownload, useAppDownloadHref } from "@/components/download/download-dialog";
import { footerNavItems } from "@/components/layout/footer-nav-items";
import { lockBodyScroll } from "@/lib/browser/scroll-lock";
import type { AppTranslationInfo, ConfigInfo, TranslationCategory, TranslationInfo } from "@/lib/api/types";
import { OFFICIAL_TG_HANDLE, OFFICIAL_TG_URL } from "@/lib/seo/metadata";
@@ -77,11 +78,10 @@ export function MobileMenu({
const onKeyDown = (event: KeyboardEvent) => {
if (event.key === "Escape") onClose();
};
const { overflow } = document.body.style;
document.body.style.overflow = "hidden";
const unlockScroll = lockBodyScroll();
window.addEventListener("keydown", onKeyDown);
return () => {
document.body.style.overflow = overflow;
unlockScroll();
window.removeEventListener("keydown", onKeyDown);
};
}, [open, onClose]);