Skip to content

Commit 0e776af

Browse files
committed
fix: noOfLines for tags
1 parent 1eed465 commit 0e776af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/tag-with-url/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const TagWithUrl = ({
5757
// See issue: https://github.com/NIAID-Data-Ecosystem/nde-portal/issues/245
5858
if (!href)
5959
return (
60-
<Text fontSize={props.fontSize || 'xs'} whiteSpace='nowrap' {...props}>
60+
<Text fontSize={props.fontSize || 'xs'} {...props}>
6161
<Label />
6262
{children}
6363
</Text>
@@ -76,11 +76,12 @@ export const TagWithUrl = ({
7676
},
7777
}}
7878
lineHeight='shorter'
79+
// whiteSpace='nowrap' // add this to prevent the tag from wrapping
7980
{...props}
8081
>
8182
{leftIcon && <TagLeftIcon as={leftIcon} />}
8283

83-
<TagLabel fontSize='inherit' lineHeight='inherit'>
84+
<TagLabel fontSize='inherit' lineHeight='inherit' display='inline'>
8485
<Label />
8586
<Text
8687
as='span'
@@ -89,7 +90,6 @@ export const TagWithUrl = ({
8990
fontSize='inherit'
9091
lineHeight='inherit'
9192
color='inherit'
92-
noOfLines={noOfLines}
9393
>
9494
{children}
9595
</Text>

0 commit comments

Comments
 (0)