From b120633453ea25c4b3226a0a663195acdd07e4f4 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 26 Jul 2025 09:10:42 +0800 Subject: [PATCH] perf(theme): improve iconfont layout --- theme/src/client/styles/icons.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/theme/src/client/styles/icons.css b/theme/src/client/styles/icons.css index 0acd8d08..8023618c 100644 --- a/theme/src/client/styles/icons.css +++ b/theme/src/client/styles/icons.css @@ -29,6 +29,11 @@ background-color: unset; } +.vp-icon.iconfont::before { + display: block; + line-height: 1; +} + /* internal icons - used under ISC from https://lucide.dev/ */ .vpi-align-left { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M21 6H3M15 12H3M17 18H3'/%3E%3C/svg%3E");