From 61e149bb9fa0bbdc4eae34f2c4324996543b8049 Mon Sep 17 00:00:00 2001
From: t8y2 <1156263951@qq.com>
Date: Sat, 1 Aug 2026 01:44:49 +0800
Subject: [PATCH] fix(docs): stabilize nav hover and sidebar icons
---
docs/app/global.css | 8 ++------
docs/components/landing/LandingNav.tsx | 6 +++---
docs/lib/source.ts | 3 +++
3 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/docs/app/global.css b/docs/app/global.css
index 7814b7935..d70348410 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -464,16 +464,12 @@ a {
}
.landing-nav-link {
- transition:
- background 0.16s ease,
- color 0.16s ease,
- transform 0.16s ease;
+ transition: color 0.16s ease;
}
.landing-nav-link:hover {
- background: var(--color-landing-soft);
+ background: transparent;
color: var(--color-landing-ink);
- transform: translateY(-1px);
}
.landing-mobile-menu {
diff --git a/docs/components/landing/LandingNav.tsx b/docs/components/landing/LandingNav.tsx
index cc9d35ade..12c70ace9 100644
--- a/docs/components/landing/LandingNav.tsx
+++ b/docs/components/landing/LandingNav.tsx
@@ -103,15 +103,15 @@ export function LandingNav({ lang, active }: { lang: "en" | "cn"; active?: "home
key={item.id}
href={item.href}
aria-current={active === item.id ? "page" : undefined}
- className={`landing-nav-link inline-flex min-h-11 items-center rounded-[7px] px-[11px] text-[13px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`}
+ className={`landing-nav-link inline-flex h-9 items-center rounded-[7px] px-[10px] text-[13px] font-medium max-[760px]:hidden ${item.tabletHidden ? "max-[900px]:hidden" : ""} ${active === item.id ? "text-landing-ink" : "text-landing-muted"}`}
>
{item.label}
))}
-
+
- setMenuOpen(false)}>
+ setMenuOpen(false)}>
文/A