浏览代码

fix: add isolate on main and z-0 on map container to fix z-index stacking with Header

neyrogovnarik 1 月之前
父节点
当前提交
d266c65715
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      frontend/src/app/page.tsx
  2. 1 1
      frontend/src/components/MapView.tsx

+ 1 - 1
frontend/src/app/page.tsx

@@ -6,7 +6,7 @@ const MapView = dynamic(() => import('@/components/MapView'), { ssr: false })
 
 export default function HomePage() {
   return (
-    <main className="relative h-screen w-screen overflow-hidden">
+    <main className="relative isolate h-screen w-screen overflow-hidden">
       <MapView />
     </main>
   )

+ 1 - 1
frontend/src/components/MapView.tsx

@@ -116,7 +116,7 @@ export default function MapView() {
           </div>
         </div>
       ) : (
-        <div ref={containerRef} className="h-full w-full" />
+        <div ref={containerRef} className="z-0 h-full w-full" />
       )}
 
       {!user && !isLoading && !mapError && (