fix: keep toolbar interactive when hidden (opacity 8% instead of pointer-events-none) so mouse-enter brings it back
This commit is contained in:
1 parent
1e0dd183b1
commit
8c2fe603d1
1 file changed
+1
-1
@@ -227,7 +227,7 @@ export function ClientView({
|
|||||||
<div
|
<div
|
||||||
ref={toolbarRef}
|
ref={toolbarRef}
|
||||||
onMouseEnter={() => setHidden(false)}
|
onMouseEnter={() => setHidden(false)}
|
||||||
className={`fixed z-[9999] backdrop-blur-xl bg-black/30 rounded-xl border border-white/10 shadow-2xl px-1.5 py-1 select-none ${dragging ? "cursor-grabbing" : "cursor-grab"} ${hidden && !dragging ? "opacity-0 pointer-events-none" : "opacity-100"}`}
|
className={`fixed z-[9999] backdrop-blur-xl bg-black/30 rounded-xl border border-white/10 shadow-2xl px-1.5 py-1 select-none ${dragging ? "cursor-grabbing" : "cursor-grab"} ${hidden && !dragging ? "opacity-[0.08]" : "opacity-100"}`}
|
||||||
style={{
|
style={{
|
||||||
top: pos.top,
|
top: pos.top,
|
||||||
left: pos.left,
|
left: pos.left,
|
||||||
|
|||||||
Reference in new issue
Block a user