src/components/mini/mdDetail.vue
@@ -50,6 +50,9 @@ </pre> </div> <div v-viewer.static class="markdown-body article-detail" v-else> <div class="articleTitle"> <h4>{{articelMeta.title}}</h4> </div> <vue-markdown :source="source"></vue-markdown> </div> </div> @@ -271,6 +274,15 @@ <style lang="less"> @import '../../assets/md.less'; .articleTitle { h4{ margin: 0px 0px 20px 0px; -webkit-line-clamp: 1; } text-align: center; width: 100%; } .headertop { position: relative;