File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/components/tag-with-url Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments