Dont show bullet if hiding URLs

This commit is contained in:
Jackson Harper
2024-08-26 14:28:36 +08:00
parent 7a4016ed0c
commit be94f50ee5

View File

@ -19,7 +19,10 @@ export function ArticleSubtitle(props: ArticleSubtitleProps): JSX.Element {
return (
<Box>
<StyledText style={textStyle} css={{ wordBreak: 'break-word' }}>
{subtitle} {subtitle && <span style={{ bottom: 1 }}> </span>}{' '}
{subtitle}{' '}
{subtitle && !shouldHideUrl(props.href) && (
<span style={{ bottom: 1 }}> </span>
)}{' '}
{!props.hideButton && !shouldHideUrl(props.href) && (
<>
<StyledLink