From f0652e6a272b576a68b775478301c932593e5c3c Mon Sep 17 00:00:00 2001 From: guoweijia Date: Thu, 22 Jul 2021 23:39:22 +0800 Subject: [PATCH] fix --- src/assets/style/card.less | 11 +++++++++++ src/components/content/components/help-doc.vue | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/assets/style/card.less b/src/assets/style/card.less index e1c1b22..e72c7ec 100644 --- a/src/assets/style/card.less +++ b/src/assets/style/card.less @@ -15,12 +15,23 @@ } .md_link_title { font-size: 16px; + line-height: 26px; font-weight: 500; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 1; + -webkit-box-orient: vertical; } .md_link_desc { font-size: 14px; + line-height: 20px; color: var(--md-editor-text-color); margin: 6px 0; + line-height: 20px; + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; } .md_link_url { font-size: 12px; diff --git a/src/components/content/components/help-doc.vue b/src/components/content/components/help-doc.vue index affeed1..cc2e501 100644 --- a/src/components/content/components/help-doc.vue +++ b/src/components/content/components/help-doc.vue @@ -136,7 +136,7 @@ export default { background: linear-gradient( to bottom, var(--md-editor-content-bg-color), - transparent + rgba(255, 255, 255, 0) ); } .after { @@ -149,7 +149,7 @@ export default { background: linear-gradient( to top, var(--md-editor-content-bg-color), - transparent + rgba(255, 255, 255, 0) ); } .doc_container { -- GitLab