From 38a800ff006e7d90342ceb53ad547a8aaa2bd4d5 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Wed, 24 Aug 2022 03:42:28 +0800 Subject: [PATCH] 月台新增图库标签 --- src/components/mini/mdDetail.vue | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/components/mini/mdDetail.vue b/src/components/mini/mdDetail.vue index 1fc7e24..73ac63e 100644 --- a/src/components/mini/mdDetail.vue +++ b/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; -- Gitblit v1.9.1