From 0ab9186e3a556fcb40a27434fb981de374894d80 Mon Sep 17 00:00:00 2001 From: hrradev Date: Sat, 20 Jul 2024 00:25:58 +0800 Subject: [PATCH] feat(theme): add custom height support for the navbar logo (#125) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update VPNavBarTitle.vue 修正logo高度未使用预定义设置(--vp-nav-logo-height),造成logo高度无法被覆写修改的问题。 --------- Co-authored-by: pengzhanbo --- theme/src/client/components/Nav/VPNavBarTitle.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme/src/client/components/Nav/VPNavBarTitle.vue b/theme/src/client/components/Nav/VPNavBarTitle.vue index 21386f12..d9565031 100644 --- a/theme/src/client/components/Nav/VPNavBarTitle.vue +++ b/theme/src/client/components/Nav/VPNavBarTitle.vue @@ -51,7 +51,7 @@ const routeLocale = useRouteLocale() } :deep(.logo) { - height: 24px; + height: var(--vp-nav-logo-height, 24px); margin-right: 8px; }