Make z-index relation between sketch scene items explicit and colocated (#5435)

* Set up start of semantic z-index layers in tailwind.config.js

* Use first two active semantic z-index layers to fix just this issue
This commit is contained in:
Frank Noirot
2025-02-20 13:53:35 -05:00
committed by GitHub
parent 5232e1d40a
commit 9f5003cafc
3 changed files with 17 additions and 4 deletions

View File

@ -179,10 +179,7 @@ const Overlays = () => {
// Set a large zIndex, the overlay for hover dropdown menu on line segments needs to render
// over the length labels on the line segments
return (
<div
className="absolute inset-0 pointer-events-none"
style={{ zIndex: '99999999' }}
>
<div className="absolute inset-0 pointer-events-none z-sketchOverlayDropdown">
{Object.entries(context.segmentOverlays)
.flatMap((a) =>
a[1].map((b) => ({ pathToNodeString: a[0], overlay: b }))