Don't render if the position is 0,0

This commit is contained in:
Andras Viczian 2025-08-01 18:08:05 +02:00
parent a3763648fe
commit 44d9be19b2

View File

@ -313,6 +313,7 @@ const Panel = ({
ref={panelRef} ref={panelRef}
tabIndex={-1} tabIndex={-1}
style={{ style={{
visibility: `${positionRef.current === "" ? "hidden" : "visible"}`,
position: "absolute", position: "absolute",
top: `${ top: `${
panelPosition.y + panelPosition.y +