From 8ac76a4cecefcfa7dda049c006516af03fa9e5ae Mon Sep 17 00:00:00 2001 From: "Bingxi Zhao (Frank)" <13051345080@163.com> Date: Sat, 29 Aug 2026 21:03:44 +0800 Subject: [PATCH] style(settings): rebuild the navigator in the app's own language MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The settings column was invented rather than borrowed, and it showed. Measuring it against `SidebarShell` — the same kind of element, on screen in the same app, all day — the differences were all in the wrong direction: - No icons at all, so a 23-row column was a wall of text with nothing to aim at while scanning. Every page already declares an icon in `settings-nav.ts`; none of them were being drawn. - Rows a half-step tighter and smaller than the app's (12.5px/py-1.5/md against 13.5px/py-2/lg), which read as cramped rather than compact. - The active row tinted with `--muted`; the app uses `--accent`. - Idle rows in `--muted-foreground` while group labels were medium-weight at 70% — so the labels were heavier than the pages under them and the hierarchy read upside down. Group labels now match the "Recents" heading: 11.5px, normal weight, 60%. Also two measurements off the rest of Settings. The radius scale had five tiers with `rounded-2xl` used exactly once outside the tour overlay, so the status strip joins the `xl` tier and the scale is four clean steps. And the overview's title was 24px where every other settings page is 22px. Shadows were counted too and left alone: all seven are on controls — a toggle knob, segmented-control selection, a tooltip — not stacked on cards, which is the pattern worth removing. --- web/components/settings/SettingsNav.tsx | 49 ++++++++++++++----- web/components/settings/SettingsOverview.tsx | 2 +- .../settings/SettingsStatusPanel.tsx | 2 +- web/locales/zh/app.json | 2 +- 4 files changed, 39 insertions(+), 16 deletions(-) diff --git a/web/components/settings/SettingsNav.tsx b/web/components/settings/SettingsNav.tsx index 4e3885183..efc32f061 100644 --- a/web/components/settings/SettingsNav.tsx +++ b/web/components/settings/SettingsNav.tsx @@ -3,7 +3,13 @@ import { useCallback, useEffect, useMemo, useState } from "react"; import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; -import { ChevronDown, Search, X } from "lucide-react"; +import { + ChevronDown, + LayoutGrid, + Search, + X, + type LucideIcon, +} from "lucide-react"; import { useTranslation } from "react-i18next"; import { fetchAuthStatus } from "@/lib/auth"; @@ -169,23 +175,23 @@ export default function SettingsNav() { return (