From 3cd8cc54b79fcde234301708e1987800d15d0b9d Mon Sep 17 00:00:00 2001 From: hypercross Date: Wed, 25 Mar 2026 17:36:19 +0800 Subject: [PATCH] fix: mini icons --- src/markdown/index.ts | 2 +- src/styles.css | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/markdown/index.ts b/src/markdown/index.ts index 0ea0ddc..5e15f9b 100644 --- a/src/markdown/index.ts +++ b/src/markdown/index.ts @@ -40,7 +40,7 @@ const marked = new Marked() renderer(token) { if (!token.meta.name) { const style = globalIconPrefix ? `style="--icon-src: url('${globalIconPrefix}/${token.text}.png')"` : ''; - return ``; + return ``; } return false; } diff --git a/src/styles.css b/src/styles.css index c3a4052..3979f55 100644 --- a/src/styles.css +++ b/src/styles.css @@ -13,6 +13,11 @@ icon, pull{ background-position: center; background-repeat: no-repeat; } +icon.mini{ + width: 1em; + height: 1em; + vertical-align: bottom; +} pull{ margin-right: -.5em; width: 0;