Skip to content

Commit

Permalink
feat: Display node labels in top-left corner instead of top-right
Browse files Browse the repository at this point in the history
We believe this increases readability. Rationale is similar to that for our introduction of the "inline" style.

Signed-off-by: George Thomas <[email protected]>
  • Loading branch information
georgefst committed Aug 3, 2023
1 parent debb33d commit c47fc29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TreeReactFlow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ const nodeTypes = {
),
label: classNames(
"z-20 p-1 absolute rounded-full text-sm xl:text-base",
data.syntax ? "-top-4" : "-right-2 -top-4",
data.syntax ? "-top-4" : "-left-2 -top-4",
flavorLabelClasses(data.flavor)
),
contents: classNames(
Expand Down

0 comments on commit c47fc29

Please sign in to comment.