From cc5f8bc1de5a050ac422d292d51fc8d8ce55abb2 Mon Sep 17 00:00:00 2001 From: bread <136384195+bbbreaddd@users.noreply.github.com> Date: Mon, 26 Jan 2026 23:27:40 -0800 Subject: [PATCH] Fixes (#4644) * fix padding with highlight in search label * fix toggle starred/index also affecting search --- .../theme/components/VPLocalSearchBox.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/.vitepress/theme/components/VPLocalSearchBox.vue b/docs/.vitepress/theme/components/VPLocalSearchBox.vue index e0eb66426..77bf06034 100644 --- a/docs/.vitepress/theme/components/VPLocalSearchBox.vue +++ b/docs/.vitepress/theme/components/VPLocalSearchBox.vue @@ -1231,11 +1231,7 @@ function onMouseMove(e: MouseEvent) { gap: 4px; } -.title .text { - display: inline-flex; - align-items: center; - gap: 4px; -} + .title-icon + .title .text { font-weight: 600; @@ -1283,13 +1279,23 @@ function onMouseMove(e: MouseEvent) { line-height: 130% !important; } +/* Ensure excerpt content is visible and correctly styled */ +.excerpt :deep(*) { + font-size: 0.8rem !important; + line-height: 130% !important; +} + +.excerpt :deep(li) { + display: list-item !important; +} + /* Highlight styles - default state */ .titles :deep(mark), .excerpt :deep(mark) { background-color: var(--vp-local-search-highlight-bg); color: var(--vp-local-search-highlight-text); border-radius: 2px; - padding: 0 2px; + padding: 0 1px; transition: background-color 0.2s; }