From b2008654ffaf0d8f8c425e88592e9ed2f8791506 Mon Sep 17 00:00:00 2001 From: seeksky <148623946+seekskyworld@users.noreply.github.com> Date: Mon, 12 Jan 2026 13:15:38 +0800 Subject: [PATCH] fix(theme): align badges in h1 and h2 (#5087) (closes #5063) --- src/client/theme-default/components/VPBadge.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/client/theme-default/components/VPBadge.vue b/src/client/theme-default/components/VPBadge.vue index 8c80fe93..e9879101 100644 --- a/src/client/theme-default/components/VPBadge.vue +++ b/src/client/theme-default/components/VPBadge.vue @@ -39,15 +39,14 @@ withDefaults(defineProps(), { display: none; } -.vp-doc h1 > .VPBadge { - margin-top: 4px; - vertical-align: top; +.vp-doc h1 > .VPBadge, +.vp-doc h2 > .VPBadge { + margin: 0 0 0 2px; + vertical-align: middle; } .vp-doc h2 > .VPBadge { - margin-top: 3px; padding: 0 8px; - vertical-align: top; } .vp-doc h3 > .VPBadge {