Update markdown css.

pull/9/head
ruibaby 2019-05-10 23:00:53 +08:00
parent 4e3856ca83
commit 5aed421693
3 changed files with 32 additions and 1 deletions

View File

@ -633,3 +633,33 @@ body {
.divider-transparent { .divider-transparent {
background: transparent !important; background: transparent !important;
} }
.comment-content-wrapper {
h1 {
font-size: 18px;
}
h2 {
font-size: 16px;
}
h3 {
font-size: 14px;
}
h4 {
font-size: 12px;
}
h5 {
font-size: 10px;
}
h6 {
font-size: 8px;
}
img {
width: 100%;
}
}

View File

@ -106,6 +106,7 @@
:pagination="false" :pagination="false"
> >
<p <p
class="comment-content-wrapper"
slot="content" slot="content"
slot-scope="content" slot-scope="content"
v-html="content" v-html="content"

View File

@ -155,7 +155,7 @@
<template slot="actions"> <template slot="actions">
<span @click="handleCommentReplyClick(item)"></span> <span @click="handleCommentReplyClick(item)"></span>
</template> </template>
<p slot="content" v-html="item.content"></p> <p class="comment-content-wrapper" slot="content" v-html="item.content"></p>
<a-tooltip <a-tooltip
slot="datetime" slot="datetime"
:title="item.createTime | moment" :title="item.createTime | moment"