Skip to content

Commit c14d0bf

Browse files
committed
fix: fix home-blog page display bug
1 parent 72a49e0 commit c14d0bf

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/HomeBlog.vue

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@
88
</div>
99

1010
<div class="home-blog-wrapper">
11-
<div>
11+
<div class="blog-list">
1212
<!-- 博客列表 -->
1313
<note-abstract
14-
class="blog-list"
1514
:data="posts"
1615
:isHome="true"
1716
:currentPage="currentPage"></note-abstract>
@@ -20,9 +19,8 @@
2019
class="pagation"
2120
:total="posts.length"
2221
:currentPage="currentPage"
23-
@getCurrentPage="getCurrentPage" />
22+
@getCurrentPage="getCurrentPage" />
2423
</div>
25-
2624
<div class="info-wrapper">
2725
<img class="personal-img" :src="$frontmatter.faceImage ? $withBase($frontmatter.faceImage) : require('../images/home-head.png')" alt="hero">
2826
<h3 class="name" v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</h3>
@@ -181,7 +179,7 @@ export default {
181179
_setPage (page) {
182180
this.currentPage = page
183181
this.$page.currentPage = page
184-
},
182+
}
185183
}
186184
}
187185
</script>
@@ -221,10 +219,13 @@ export default {
221219
align-items: flex-start;
222220
margin 20px auto 0
223221
max-width 1126px
222+
.blog-list {
223+
flex auto
224+
}
224225
.info-wrapper {
225226
transition all .3s
226227
margin-left 15px;
227-
width 380px;
228+
width 34rem;
228229
height auto;
229230
box-shadow 0 2px 10px rgba(0,0,0,0.2);
230231
box-sizing border-box

0 commit comments

Comments
 (0)