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:
parent
d9b8211a18
commit
75ddab6011
1 changed files with 5 additions and 3 deletions
|
|
@ -490,8 +490,8 @@ function GenericNode({
|
||||||
<div
|
<div
|
||||||
data-testid={`${data.id}-main-node`}
|
data-testid={`${data.id}-main-node`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"grid gap-3 truncate text-wrap p-4 leading-5",
|
"grid gap-3 text-wrap p-4 leading-5",
|
||||||
showNode && "border-b",
|
showNode ? "border-b" : "relative",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|
@ -507,7 +507,9 @@ function GenericNode({
|
||||||
data-testid="generic-node-title-arrangement"
|
data-testid="generic-node-title-arrangement"
|
||||||
>
|
>
|
||||||
{renderNodeIcon()}
|
{renderNodeIcon()}
|
||||||
<div className="generic-node-tooltip-div">{renderNodeName()}</div>
|
<div className="generic-node-tooltip-div truncate">
|
||||||
|
{renderNodeName()}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-testid={`${showNode ? "show" : "hide"}-node-content`}>
|
<div data-testid={`${showNode ? "show" : "hide"}-node-content`}>
|
||||||
{!showNode && (
|
{!showNode && (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue