From 7847f8360b3be9d82679915eadf3581ec422eeb8 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Thu, 28 Jul 2022 22:15:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E4=BF=A1=E6=81=AF=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=98=85=E8=AF=BB=E6=95=B0=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=EF=BC=8C=E5=B9=B6=E5=AF=B9=E6=96=87=E7=AB=A0=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E4=BF=A1=E6=81=AF=E7=9A=84=E5=8A=A0=E8=BD=BD=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E8=BF=9B=E8=A1=8C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- repos/.vitepress/config/markdown.ts | 2 +- .../theme/components/ArticleMetadata.vue | 14 +++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/repos/.vitepress/config/markdown.ts b/repos/.vitepress/config/markdown.ts index 1329a652a..b0e5ae17f 100644 --- a/repos/.vitepress/config/markdown.ts +++ b/repos/.vitepress/config/markdown.ts @@ -9,7 +9,7 @@ export const markdown: MarkdownOptions = { config: (md) => { md.renderer.rules.heading_close = (tokens, idx, options, env, slf) => { let htmlResult = slf.renderToken(tokens, idx, options, env, slf) - if (tokens[idx].tag === 'h1') htmlResult += `\n` + if (tokens[idx].tag === 'h1') htmlResult += `\n` return htmlResult } } diff --git a/repos/.vitepress/theme/components/ArticleMetadata.vue b/repos/.vitepress/theme/components/ArticleMetadata.vue index 4fa4ecc46..1b9b5254d 100644 --- a/repos/.vitepress/theme/components/ArticleMetadata.vue +++ b/repos/.vitepress/theme/components/ArticleMetadata.vue @@ -1,5 +1,5 @@ @@ -48,7 +42,6 @@ const toDate = dayjs().to(dayjs(frontmatter.value.date)) } .meta-item { display: inline-block; - margin-right: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -58,9 +51,12 @@ const toDate = dayjs().to(dayjs(frontmatter.value.date)) cursor: default; font-size: 14px; } +.meta-item:not(:last-child) { + margin-right: 1.25rem; +} .meta-icon, meta-content { display: inline-block; - margin-right: 8px; + margin-right: .375rem; vertical-align: middle; } .meta-icon {