修复H5 top层级问题

This commit is contained in:
北枳 2025-09-25 17:46:40 +08:00
parent 3a741b32fb
commit 5df45bdde2
3 changed files with 3 additions and 3 deletions

View File

@ -217,7 +217,7 @@ export function TopBar({ collapsed, isDesktop=true }: { collapsed: boolean, isDe
return (
<div
className="fixed right-0 top-0 h-16 header"
className="fixed right-0 top-0 h-16 header z-[20]"
style={{
isolation: "isolate",
left: (pathname === "/" || !isDesktop) ? "0" : (collapsed ? "2.5rem" : "16rem")

View File

@ -223,7 +223,7 @@ export function HomePage2() {
return () => window.removeEventListener('home-menu-toggle' as any, handler as any);
}, []);
return (
<div data-alt="home-navbar" className="fixed h-16 top-0 left-0 right-0 z-50">
<div data-alt="home-navbar" className="fixed h-16 top-0 left-0 right-0 z-[19]">
<div className="mx-auto h-full">
<div className="flex h-full items-center justify-center px-4 sm:px-6 py-3 bg-black/60 backdrop-blur-md border-b border-white/10">
{/* 桌面端菜单(居中,仅三个项) */}

View File

@ -301,7 +301,7 @@ export function H5MediaViewer({
<button
type="button"
data-alt="open-catalog-button"
className="fixed bottom-4 right-4 z-[60] w-12 h-12 rounded-full bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-lg flex items-center justify-center active:scale-95"
className="fixed bottom-[6rem] right-4 z-[60] w-12 h-12 rounded-full bg-gradient-to-br from-blue-500 to-blue-600 text-white shadow-lg flex items-center justify-center active:scale-95"
aria-label="open-catalog"
onClick={() => setIsCatalogOpen(true)}
>