Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: abnormal display of dividing line in blog #556

Merged
merged 12 commits into from
Sep 6, 2021
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