diff --git a/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.test.tsx b/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.test.tsx
index d3b8f2c2c2..74a1de7e5d 100644
--- a/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.test.tsx
+++ b/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.test.tsx
@@ -32,7 +32,7 @@ const buildNodeProps = (graphNode: GraphNode): NodeProps =>
}) as unknown as NodeProps;
describe("FindingNode", () => {
- it("positions graph handles for vertical top-to-bottom edges", () => {
+ it("positions graph handles for horizontal left-to-right edges", () => {
// Given
const props = buildNodeProps(
buildFindingNode("critical", "Root key exposed"),
@@ -44,8 +44,10 @@ describe("FindingNode", () => {
// Then
expect(hiddenHandlesMock).toHaveBeenCalledWith(
expect.objectContaining({
- sourcePosition: Position.Bottom,
- targetPosition: Position.Top,
+ sourcePosition: Position.Right,
+ sourceStyle: { left: 97, top: 26 },
+ targetPosition: Position.Left,
+ targetStyle: { left: 53, top: 26 },
}),
undefined,
);
diff --git a/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.tsx b/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.tsx
index 9bd73e2407..986617def7 100644
--- a/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.tsx
+++ b/ui/app/(prowler)/attack-paths/(workflow)/query-builder/_components/graph/nodes/finding-node.tsx
@@ -21,8 +21,8 @@ const BADGE_SIZE = 44;
const BADGE_RADIUS = BADGE_SIZE / 2;
const BADGE_CENTER_X = NODE_WIDTH / 2;
const BADGE_CENTER_Y = 26;
-const BADGE_BOTTOM_Y = BADGE_CENTER_Y + BADGE_RADIUS;
-const BADGE_TOP_Y = BADGE_CENTER_Y - BADGE_RADIUS;
+const BADGE_LEFT_X = BADGE_CENTER_X - BADGE_RADIUS;
+const BADGE_RIGHT_X = BADGE_CENTER_X + BADGE_RADIUS;
const ICON_SIZE = 28;
const ICON_X = BADGE_CENTER_X - ICON_SIZE / 2;
const ICON_Y = BADGE_CENTER_Y - ICON_SIZE / 2;
@@ -76,11 +76,10 @@ export const FindingNode = ({ data, selected }: NodeProps) => {
return (
<>