From af2b7e4530d658021fd0f92c3aa02cadb1c332bc Mon Sep 17 00:00:00 2001 From: Emily Xiong Date: Mon, 23 Sep 2024 12:24:17 -0400 Subject: [PATCH] fix(graph): add spacing between graph details top --- .../src/lib/project-details/project-details.tsx | 6 +++--- graph/ui-project-details/src/lib/tag-list/tag-list.tsx | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/graph/ui-project-details/src/lib/project-details/project-details.tsx b/graph/ui-project-details/src/lib/project-details/project-details.tsx index 77921e786afff..026c984d4c94d 100644 --- a/graph/ui-project-details/src/lib/project-details/project-details.tsx +++ b/graph/ui-project-details/src/lib/project-details/project-details.tsx @@ -106,16 +106,16 @@ export const ProjectDetails = ({

) : null} {projectData.tags && projectData.tags.length ? ( - + ) : null} {projectData.root ? ( -

+

Root: {projectData.root.trim()}

) : null} {projectData.projectType ?? typeToProjectType[project.type] ? ( -

+

Type: {projectData.projectType ?? typeToProjectType[project.type]} diff --git a/graph/ui-project-details/src/lib/tag-list/tag-list.tsx b/graph/ui-project-details/src/lib/tag-list/tag-list.tsx index 6195181425e5d..5e993e153fb94 100644 --- a/graph/ui-project-details/src/lib/tag-list/tag-list.tsx +++ b/graph/ui-project-details/src/lib/tag-list/tag-list.tsx @@ -1,11 +1,13 @@ import React, { useState, useRef, useEffect } from 'react'; import { Pill } from '../pill'; +import { twMerge } from 'tailwind-merge'; interface TagListProps { tags: string[]; + className: string; } -export function TagList({ tags }: TagListProps) { +export function TagList({ tags, className }: TagListProps) { const [isExpanded, _setIsExpanded] = useState(false); const [isOverflowing, setIsOverflowing] = useState(false); const tagsContainerRef = useRef(null); @@ -34,7 +36,7 @@ export function TagList({ tags }: TagListProps) { }, [tagsContainerRef]); return ( -

+

Tags: