mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-03 12:17:20 +02:00
fix: make tags wrapping properly (#5422)
This commit is contained in:
parent
e6f4a9b231
commit
22eebea81e
2 changed files with 5 additions and 5 deletions
|
@ -117,7 +117,7 @@ function BlogPostItem(props: Props): JSX.Element {
|
|||
[styles.blogPostDetailsFull]: isBlogPostPage,
|
||||
})}>
|
||||
{tags.length > 0 && (
|
||||
<div className="col">
|
||||
<div className={clsx('col', {'col--9': !isBlogPostPage})}>
|
||||
<TagsListInline tags={tags} />
|
||||
</div>
|
||||
)}
|
||||
|
@ -129,7 +129,7 @@ function BlogPostItem(props: Props): JSX.Element {
|
|||
)}
|
||||
|
||||
{!isBlogPostPage && truncated && (
|
||||
<div className="col text--right">
|
||||
<div className="col col--3 text--right">
|
||||
<Link
|
||||
to={metadata.permalink}
|
||||
aria-label={`Read more about ${title}`}>
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
*/
|
||||
|
||||
.tags {
|
||||
list-style: none;
|
||||
display: inline-flex;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.tag {
|
||||
margin-right: 0.4rem;
|
||||
margin: 0 0.4rem 0.5rem 0;
|
||||
display: inline-block;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue