Skip to content

Commit 016681d

Browse files
committed
💄 详情css
1 parent 3346859 commit 016681d

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

pages/detail/_id.vue

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@
5353
</nuxt-link>
5454
<div class="comment-area">
5555
<p class="comment-area__title">评论</p>
56-
<comment-item v-for="(item, index) in comments" :key="item.id" :index="index" :author-id="authorInfo.uid" :data="item" @reply-more="getMoreReply"></comment-item>
57-
<div v-if="hasComments" class="comment__more-btn" @click="getMoreComment">查看更多</div>
56+
<div style="padding-left: 50px">
57+
<comment-item v-for="(item, index) in comments" :key="item.id" :index="index" :author-id="authorInfo.uid" :data="item" @reply-more="getMoreReply"></comment-item>
58+
<div v-if="hasComments" class="comment__more-btn" @click="getMoreComment">查看更多</div>
59+
</div>
5860
</div>
5961
</div>
6062
<div class="detail-recommend shadow">
@@ -317,6 +319,15 @@ export default {
317319
318320
/deep/ p{
319321
margin: 22px 0;
322+
323+
>code{
324+
background-color: rgb(255, 245, 245);
325+
color: rgb(255, 80, 44);
326+
font-size: 13px;
327+
padding: 1px 5px;
328+
border-radius: 2px;
329+
overflow-x: auto;
330+
}
320331
}
321332
322333
/deep/ h1{
@@ -436,7 +447,7 @@ export default {
436447
}
437448
438449
.comment-area{
439-
padding: 20px 0 20px 50px;
450+
padding: 20px 0;
440451
441452
.comment-area__title{
442453
padding-bottom: 20px;

0 commit comments

Comments
 (0)