fix: make tags wrapping properly (#5422)

This commit is contained in:
Alexey Pyltsyn 2021-08-26 15:31:22 +03:00 committed by GitHub
parent e6f4a9b231
commit 22eebea81e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -117,7 +117,7 @@ function BlogPostItem(props: Props): JSX.Element {
[styles.blogPostDetailsFull]: isBlogPostPage, [styles.blogPostDetailsFull]: isBlogPostPage,
})}> })}>
{tags.length > 0 && ( {tags.length > 0 && (
<div className="col"> <div className={clsx('col', {'col--9': !isBlogPostPage})}>
<TagsListInline tags={tags} /> <TagsListInline tags={tags} />
</div> </div>
)} )}
@ -129,7 +129,7 @@ function BlogPostItem(props: Props): JSX.Element {
)} )}
{!isBlogPostPage && truncated && ( {!isBlogPostPage && truncated && (
<div className="col text--right"> <div className="col col--3 text--right">
<Link <Link
to={metadata.permalink} to={metadata.permalink}
aria-label={`Read more about ${title}`}> aria-label={`Read more about ${title}`}>

View file

@ -6,10 +6,10 @@
*/ */
.tags { .tags {
list-style: none; display: inline;
display: inline-flex;
} }
.tag { .tag {
margin-right: 0.4rem; margin: 0 0.4rem 0.5rem 0;
display: inline-block;
} }