fix: changed edge position on minimized and not updated node (#6816)

Added relative to show handle in correct position when node needs updating and is minimized
This commit is contained in:
Lucas Oliveira 2025-02-26 17:45:50 -03:00 committed by GitHub
commit 75ddab6011
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -490,8 +490,8 @@ function GenericNode({
<div
data-testid={`${data.id}-main-node`}
className={cn(
"grid gap-3 truncate text-wrap p-4 leading-5",
showNode && "border-b",
"grid gap-3 text-wrap p-4 leading-5",
showNode ? "border-b" : "relative",
)}
>
<div
@ -507,7 +507,9 @@ function GenericNode({
data-testid="generic-node-title-arrangement"
>
{renderNodeIcon()}
<div className="generic-node-tooltip-div">{renderNodeName()}</div>
<div className="generic-node-tooltip-div truncate">
{renderNodeName()}
</div>
</div>
<div data-testid={`${showNode ? "show" : "hide"}-node-content`}>
{!showNode && (