diff --git a/changelog/unreleased/keys-card-prefix-line.md b/changelog/unreleased/keys-card-prefix-line.md new file mode 100644 index 00000000..27973060 --- /dev/null +++ b/changelog/unreleased/keys-card-prefix-line.md @@ -0,0 +1,9 @@ +### English + +- Console: API key cards show the key prefix on its own full-width line at a readable size. +- Console: the sidebar is easier to read, with larger menu text, icons and rows. + +### 中文 + +- 控制台:API 密钥卡片将密钥前缀单独整行显示,字号更易读。 +- 控制台:侧边栏菜单的文字、图标和行高加大,更易阅读。 diff --git a/frontend/src/components/layout/AppSidebar.tsx b/frontend/src/components/layout/AppSidebar.tsx index dfe9a032..73213f76 100644 --- a/frontend/src/components/layout/AppSidebar.tsx +++ b/frontend/src/components/layout/AppSidebar.tsx @@ -51,7 +51,7 @@ function NavList({ collapsed, onNavigate }: { collapsed: boolean; onNavigate?: ( const activeRect = active.getBoundingClientRect() gsap.to(indicator, { x: activeRect.left - navRect.left, - y: activeRect.top - navRect.top + activeRect.height / 2 - 8, + y: activeRect.top - navRect.top + activeRect.height / 2 - 9, autoAlpha: 1, scaleY: 1, duration: window.matchMedia('(prefers-reduced-motion: reduce)').matches ? 0 : 0.28, @@ -63,13 +63,13 @@ function NavList({ collapsed, onNavigate }: { collapsed: boolean; onNavigate?: ( return (