From 6c6758d91ef6b28029bf20a87802ecf5a87b99b5 Mon Sep 17 00:00:00 2001 From: Drew Hess Date: Sun, 2 Jun 2024 00:27:27 +0100 Subject: [PATCH] chore: render edge labels roundel-style Signed-off-by: Drew Hess --- src/components/TreeReactFlow/index.tsx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/TreeReactFlow/index.tsx b/src/components/TreeReactFlow/index.tsx index c9bd21e8..7b8fb97a 100644 --- a/src/components/TreeReactFlow/index.tsx +++ b/src/components/TreeReactFlow/index.tsx @@ -524,17 +524,14 @@ const edgeTypes = { style={{ strokeWidth: "0.25rem", fill: "none" }} > {label && ( + // Note: React Flow provides `EdgeText`, but it's not quite + // flexible enough for what we want.
{label}