Skip to content

Commit

Permalink
fix: abnormal display of dividing line in blog (apache#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoyuantop authored and 1502shivam-singh committed Sep 19, 2021
1 parent f617a4c commit bd67001
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/src/theme/BlogPostItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ function BlogPostItem(props) {
)}
</div>
</div>
<div className={`margin-bottom--md ${styles.line}`}>
{author && <div className={`margin-bottom--md ${styles.line}`}>
<div></div>
</div>
<div className={`margin-bottom--md ${styles.headerDate}`}>
</div>}
<div className={`margin-bottom--md ${styles.headerDate} ${author && styles.marginLeft}`}>
<DateLogo />
<time dateTime={date} className={styles.blogPostDate}>
{formattedDate}
Expand All @@ -88,9 +88,9 @@ function BlogPostItem(props) {
)}
</time>
</div>
<div className={`margin-bottom--md ${styles.line}`}>
{tags.length > 0 && <div className={`margin-bottom--md ${styles.line}`}>
<div></div>
</div>
</div>}
<div className={`margin-bottom--md`}>
{tags.length > 0 && (
<div className={`col ${styles.headerTags}`}>
Expand Down
3 changes: 3 additions & 0 deletions website/src/theme/BlogPostItem/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
.headerDate {
display: flex;
align-items: center;
}

.marginLeft {
margin-left: 16px;
}

Expand Down

0 comments on commit bd67001

Please sign in to comment.