Skip to content

Commit 2dc1ac0

Browse files
committed
raise overlay z-index above leaflet panes
Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
1 parent c227b33 commit 2dc1ac0

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

app/page.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ export default function HomePage() {
101101
</div>
102102
) : null}
103103

104-
<div className="absolute bottom-4 left-4 z-10 pointer-events-none">
104+
<div
105+
className="absolute bottom-4 left-4 pointer-events-none"
106+
style={{ zIndex: 1000 }}
107+
>
105108
<div
106109
className="text-[10px] font-mono text-[var(--text-2)] px-2 py-1 rounded"
107110
style={{ background: "rgba(11,15,20,0.7)" }}
@@ -115,7 +118,8 @@ export default function HomePage() {
115118
href="https://github.com/c-tonneslan/groundwork"
116119
target="_blank"
117120
rel="noreferrer"
118-
className="absolute top-4 right-4 z-10 text-[11px] font-mono text-[var(--text-2)] hover:text-[var(--accent)]"
121+
className="absolute top-4 right-4 text-[11px] font-mono text-[var(--text-2)] hover:text-[var(--accent)]"
122+
style={{ zIndex: 1000 }}
119123
>
120124
source
121125
</a>

components/Detail.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,16 @@ export default function Detail({ project, onClose }: Props) {
3636

3737
return (
3838
<div
39-
className="absolute top-4 left-4 z-20 w-96 max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-xl border overflow-y-auto"
39+
className="absolute top-4 left-4 w-96 max-w-[calc(100%-2rem)] max-h-[calc(100%-2rem)] rounded-xl border overflow-y-auto"
4040
style={{
4141
background: "rgba(17,24,31,0.96)",
4242
borderColor: "var(--border)",
4343
backdropFilter: "blur(12px)",
4444
boxShadow: "0 12px 32px rgba(0,0,0,0.5)",
45+
// Leaflet panes sit at z-index 200-700 inside the map container;
46+
// we need to live above them so the detail panel isn't hidden
47+
// behind marker layers and controls.
48+
zIndex: 1000,
4549
}}
4650
>
4751
<div

0 commit comments

Comments
 (0)