✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.
feat: update node row height
AykutSaracdb729b05bacd
diff --git a/src/constants/graph.ts b/src/constants/graph.tsindex d9bde7c3..739379f1 100644--- a/src/constants/graph.ts+++ b/src/constants/graph.ts@@ -1,5 +1,5 @@export const NODE_DIMENSIONS = {- ROW_HEIGHT: 24, // Regular row height+ ROW_HEIGHT: 30, // Regular row heightPARENT_HEIGHT: 36, // Height for parent nodes} as const;diff --git a/src/features/editor/views/GraphView/CustomNode/styles.tsx b/src/features/editor/views/GraphView/CustomNode/styles.tsxindex 4ae64f51..175b4524 100644--- a/src/features/editor/views/GraphView/CustomNode/styles.tsx+++ b/src/features/editor/views/GraphView/CustomNode/styles.tsx@@ -76,7 +76,7 @@ export const StyledKey = styled.span<{export const StyledRow = styled.span<{ $value: TextColorFn["$value"] }>`padding: 3px 10px;height: ${NODE_DIMENSIONS.ROW_HEIGHT}px;- line-height: 18px;+ line-height: 24px;color: ${({ theme, $value }) => getTextColor({ $value, theme, $type: typeof $value })};display: block;overflow: hidden;