mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 04:37:28 +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,
|
[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}`}>
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue