AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
style(settings): unify typography hierarchy across settings cards and items
tianma-if6669b59c966b
diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsxindex e41e7a80..1ed74c63 100644--- a/apps/web/src/components/SettingsPane.tsx+++ b/apps/web/src/components/SettingsPane.tsx@@ -18,6 +18,12 @@ import * as m from "motion/react-m";import { SystemInfoDialog } from "@/components/SystemInfoDialog";import { Button } from "@/components/ui/button";import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings/settings-ui";import type { EditorContentAlignment, ShortcutSettings } from "@/lib/app-helpers";import { WORKSPACE_PAGE_TITLE_CLASSNAME } from "@/lib/workspace-ui";import { cn } from "@/lib/utils";@@ -239,9 +245,14 @@ export const SettingsPane = ({onOpenAiSettings={() => setActiveTab("ai")} />) : (<Card className="shadow-none">- <CardHeader className="p-4 sm:p-5">- <CardTitle className="text-sm">{t("companion.discovery.settingsTitle")}</CardTitle>- <CardDescription>{t("companion.unavailableHelp")}</CardDescription>+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <PawPrint className={SETTINGS_CARD_ICON_CLASSNAME} />+ {t("companion.discovery.settingsTitle")}+ </CardTitle>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>+ {t("companion.unavailableHelp")}+ </CardDescription></CardHeader></Card>)}diff --git a/apps/web/src/components/settings/AccountInfoCard.tsx b/apps/web/src/components/settings/AccountInfoCard.tsxindex d756797f..02459db1 100644--- a/apps/web/src/components/settings/AccountInfoCard.tsx+++ b/apps/web/src/components/settings/AccountInfoCard.tsx@@ -2,6 +2,12 @@ import { UserRound } from "lucide-react";import type { AuthUser } from "@edgeever/shared";import { useTranslation } from "react-i18next";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";export const AccountInfoCard = ({ user }: { user: AuthUser | null }) => {const { t } = useTranslation();@@ -10,12 +16,14 @@ export const AccountInfoCard = ({ user }: { user: AuthUser | null }) => {return (<Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">- <CardTitle className="flex items-center gap-2 text-sm">- <UserRound className="h-4 w-4 text-emerald-700" />+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <UserRound className={SETTINGS_CARD_ICON_CLASSNAME} />{t("accountInfo.title")}</CardTitle>- <CardDescription>{t("accountInfo.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>+ {t("accountInfo.description")}+ </CardDescription></CardHeader><CardContent className="flex items-center gap-3 p-4 pt-0"><div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-emerald-50 text-emerald-700">diff --git a/apps/web/src/components/settings/AiModelCard.tsx b/apps/web/src/components/settings/AiModelCard.tsxindex aa53f81c..50be8784 100644--- a/apps/web/src/components/settings/AiModelCard.tsx+++ b/apps/web/src/components/settings/AiModelCard.tsx@@ -12,6 +12,14 @@ import {} from "@/components/settings/ai-provider-options";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+ SETTINGS_ITEM_DESCRIPTION_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";import {Dialog,@@ -109,15 +117,15 @@ export const AiModelCard = () => {return (<Collapsible open={expanded} onOpenChange={setExpanded} asChild><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4 sm:p-5">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><CollapsibleTrigger asChild><button className="flex w-full min-w-0 items-start justify-between gap-3 text-left" type="button"><span className="min-w-0">- <CardTitle className="flex items-center gap-2 text-base font-semibold">- <Sparkles className="h-4.5 w-4.5 text-emerald-700" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Sparkles className={SETTINGS_CARD_ICON_CLASSNAME} />{t("aiModel.title")}</CardTitle>- <CardDescription className="mt-1 text-xs text-slate-500">{t("aiModel.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("aiModel.description")}</CardDescription></span><ChevronDown className={cn("mt-0.5 h-4 w-4 shrink-0 text-slate-400 transition-transform", expanded && "rotate-180")} /></button>@@ -136,14 +144,14 @@ export const AiModelCard = () => {) : null}<section className="grid gap-2">- <span className="text-sm font-semibold text-slate-600">+ <span className="text-xs font-semibold text-slate-500">{t("aiModel.defaultSettingsTitle")}</span><div className="overflow-hidden rounded-lg border border-slate-200/70 bg-slate-50/50 divide-y divide-slate-200/70"><div className="flex items-center justify-between gap-3 px-3.5 py-2.5"><div className="min-w-0">- <div className="text-sm font-semibold text-slate-800">{t("aiModel.defaultModel")}</div>- <div className="mt-0.5 text-xs leading-5 text-slate-500">{t("aiModel.defaultModelHint")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("aiModel.defaultModel")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("aiModel.defaultModelHint")}</div></div><div className="w-56 max-w-[60%] shrink-0 sm:w-72"><Select@@ -165,8 +173,8 @@ export const AiModelCard = () => {</div><div className="flex items-center justify-between gap-3 px-3.5 py-2.5"><div className="min-w-0">- <div className="text-sm font-semibold text-slate-800">{t("settings.aiStreamingTitle")}</div>- <div className="mt-0.5 text-xs leading-5 text-slate-500">{t("settings.aiStreamingDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.aiStreamingTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.aiStreamingDescription")}</div></div><SwitchclassName="shrink-0"@@ -190,7 +198,7 @@ export const AiModelCard = () => {<section className="grid gap-3"><div className="flex items-center justify-between gap-3"><div className="flex items-center gap-2">- <span className="text-sm font-semibold text-slate-600">+ <span className="text-xs font-semibold text-slate-500">{t("aiModel.servicesTitle")}</span><span className="rounded-full bg-slate-100 px-2 py-0.5 text-[11px] font-medium text-slate-600">diff --git a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsxindex 86174176..474427f7 100644--- a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx+++ b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx@@ -4,6 +4,12 @@ import { Bot, ChevronDown, Loader2, RotateCcw, Save } from "lucide-react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";import { api } from "@/lib/api";import { cn } from "@/lib/utils";@@ -39,15 +45,15 @@ export const AiTagSuggestionPromptCard = () => {return (<Collapsible open={expanded} onOpenChange={setExpanded} asChild><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><CollapsibleTrigger asChild><button className="flex w-full min-w-0 items-start justify-between gap-3 text-left" type="button"><span className="min-w-0">- <CardTitle className="flex items-center gap-2 text-sm">- <Bot className="h-4 w-4 text-emerald-700" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Bot className={SETTINGS_CARD_ICON_CLASSNAME} />{t("settings.aiTagPromptTitle")}</CardTitle>- <CardDescription className="mt-1 text-xs leading-5 text-slate-500">+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("settings.aiTagPromptDescription")}</CardDescription></span>diff --git a/apps/web/src/components/settings/CompanionDiscoverySettingsCard.tsx b/apps/web/src/components/settings/CompanionDiscoverySettingsCard.tsxindex 2d1274ba..8b695454 100644--- a/apps/web/src/components/settings/CompanionDiscoverySettingsCard.tsx+++ b/apps/web/src/components/settings/CompanionDiscoverySettingsCard.tsx@@ -3,6 +3,12 @@ import { useQuery, useQueryClient } from "@tanstack/react-query";import { useTranslation } from "react-i18next";import { Sparkles, ShieldCheck, ChevronRight, Clock, Activity, MessageSquareText } from "lucide-react";import { Card, CardHeader, CardTitle, CardDescription, CardContent } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { Switch } from "@/components/ui/switch";import { api, ApiRequestError } from "@/lib/api";import { discoveryFeedKey, discoverySettingsKey, useCompanionDiscoverySettings } from "@/hooks/useCompanionDiscovery";@@ -59,17 +65,19 @@ export function CompanionDiscoverySettingsCard({ scope, onOpenCompanion, onOpenAreturn (<Card className="shadow-none">- <CardHeader className="p-4 sm:p-5">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div className="flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between"><div className="min-w-0 space-y-1.5"><div className="flex items-center gap-2">- <Sparkles className="h-4 w-4 text-emerald-600 dark:text-emerald-400" />- <CardTitle className="text-sm font-semibold sm:text-base">{t("companion.discovery.settingsTitle")}</CardTitle>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Sparkles className={SETTINGS_CARD_ICON_CLASSNAME} />+ {t("companion.discovery.settingsTitle")}+ </CardTitle><span className="inline-flex items-center rounded-full border border-emerald-200/80 bg-emerald-50 px-2 py-0.5 text-[10px] font-semibold tracking-wide text-emerald-700 dark:border-emerald-800/60 dark:bg-emerald-950/50 dark:text-emerald-300">Beta</span></div>- <CardDescription className="text-xs leading-relaxed text-slate-600 sm:text-sm dark:text-slate-400">+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("companion.discovery.description")}</CardDescription></div>diff --git a/apps/web/src/components/settings/DataExportCard.tsx b/apps/web/src/components/settings/DataExportCard.tsxindex e12c0aed..81838b9f 100644--- a/apps/web/src/components/settings/DataExportCard.tsx+++ b/apps/web/src/components/settings/DataExportCard.tsx@@ -3,6 +3,12 @@ import { AlertCircle, CheckCircle2, DatabaseBackup, Download, Upload } from "lucimport { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import {Dialog,DialogContent,@@ -154,14 +160,14 @@ export const DataExportCard = ({ refreshWorkspaceAfterImport }: DataExportCardPrreturn (<><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4 sm:p-5">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"><div className="min-w-0 space-y-1">- <CardTitle className="flex items-center gap-2 text-sm font-semibold">- <DatabaseBackup className="h-4 w-4 text-emerald-700 shrink-0" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <DatabaseBackup className={SETTINGS_CARD_ICON_CLASSNAME} />{t("dataExport.title")}</CardTitle>- <CardDescription className="text-xs leading-relaxed text-slate-500">+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("dataExport.description")}</CardDescription></div>diff --git a/apps/web/src/components/settings/DesktopLocalDataCard.tsx b/apps/web/src/components/settings/DesktopLocalDataCard.tsxindex fa849b59..2e1369c1 100644--- a/apps/web/src/components/settings/DesktopLocalDataCard.tsx+++ b/apps/web/src/components/settings/DesktopLocalDataCard.tsx@@ -3,6 +3,13 @@ import { AlertCircle, AlertTriangle, RotateCcw } from "lucide-react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";+import { cn } from "@/lib/utils";import {Dialog,DialogContent,@@ -46,12 +53,12 @@ export const DesktopLocalDataCard = () => {return (<><Card className="w-full min-w-0 overflow-hidden border-rose-100 bg-rose-50/30 shadow-none">- <CardHeader className="p-4 pb-3 sm:p-5 sm:pb-3">- <CardTitle className="flex items-center gap-2 text-sm text-rose-800">- <AlertTriangle className="h-4 w-4" />+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={cn(SETTINGS_CARD_TITLE_CLASSNAME, "text-rose-800")}>+ <AlertTriangle className={cn(SETTINGS_CARD_ICON_CLASSNAME, "text-rose-700")} />{t("localDataReset.title")}</CardTitle>- <CardDescription className="text-xs leading-5">{t("localDataReset.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("localDataReset.description")}</CardDescription></CardHeader><CardContent className="grid gap-3 p-4 pt-0 sm:px-5 sm:pb-5">{errorCode ? (diff --git a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx b/apps/web/src/components/settings/EvernoteImportGuideCard.tsxindex d5f1b2a1..ad7e362a 100644--- a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx+++ b/apps/web/src/components/settings/EvernoteImportGuideCard.tsx@@ -2,6 +2,12 @@ import { ExternalLink, UploadCloud } from "lucide-react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { EVERNOTE_MIGRATION_BLOG_URL } from "@/lib/routes";export const EvernoteImportGuideCard = () => {@@ -9,14 +15,14 @@ export const EvernoteImportGuideCard = () => {return (<Card className="hidden w-full min-w-0 overflow-hidden shadow-none lg:block">- <CardHeader className="p-4 sm:p-5">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"><div className="min-w-0 space-y-1">- <CardTitle className="flex items-center gap-2 text-sm font-semibold">- <UploadCloud className="h-4 w-4 text-emerald-700 shrink-0" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <UploadCloud className={SETTINGS_CARD_ICON_CLASSNAME} />{t("evernoteImport.title")}</CardTitle>- <CardDescription className="text-xs leading-relaxed text-slate-500">+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("evernoteImport.description")}</CardDescription></div>diff --git a/apps/web/src/components/settings/LoginDevicesCard.tsx b/apps/web/src/components/settings/LoginDevicesCard.tsxindex ad3999b7..e293a369 100644--- a/apps/web/src/components/settings/LoginDevicesCard.tsx+++ b/apps/web/src/components/settings/LoginDevicesCard.tsx@@ -4,6 +4,13 @@ import { useState } from "react";import { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";import { Input } from "@/components/ui/input";import { api } from "@/lib/api";import { LoginSessionRevokeDialog, type LoginSessionRevokeTarget } from "./LoginSessionRevokeDialog";@@ -111,13 +118,13 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Loginreturn (<><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div>- <CardTitle className="flex items-center gap-2 text-sm">- <MonitorSmartphone className="h-4 w-4 text-emerald-700" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <MonitorSmartphone className={SETTINGS_CARD_ICON_CLASSNAME} />{t("loginDevices.title")}</CardTitle>- <CardDescription className="mt-1">{t("loginDevices.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("loginDevices.description")}</CardDescription></div></CardHeader><CardContent className="p-4 pt-0">@@ -154,7 +161,7 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Login}}/>) : (- <p className="text-sm font-semibold text-slate-800">{session.label || t(`loginDevices.${deviceKind}`)}</p>+ <p className={SETTINGS_ITEM_TITLE_CLASSNAME}>{session.label || t(`loginDevices.${deviceKind}`)}</p>)}{session.isCurrent ? (<span className="rounded-full bg-emerald-50 px-2 py-0.5 text-[11px] font-semibold text-emerald-700">diff --git a/apps/web/src/components/settings/McpConfigCard.tsx b/apps/web/src/components/settings/McpConfigCard.tsxindex 22c04733..c9769338 100644--- a/apps/web/src/components/settings/McpConfigCard.tsx+++ b/apps/web/src/components/settings/McpConfigCard.tsx@@ -5,6 +5,12 @@ import { Copy, KeyRound, Plus, ShieldCheck, Trash2 } from "lucide-react";import type { ApiToken } from "@edgeever/shared";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogTrigger } from "@/components/ui/dialog";import { Input } from "@/components/ui/input";import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";@@ -369,14 +375,14 @@ export const McpConfigCard = () => {return (<><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4 sm:p-5">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div className="flex items-start justify-between gap-3"><div>- <CardTitle className="flex items-center gap-2 text-base font-semibold">- <KeyRound className="h-4.5 w-4.5 text-emerald-700" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <KeyRound className={SETTINGS_CARD_ICON_CLASSNAME} />{t("mcp.title")}</CardTitle>- <CardDescription className="mt-1 text-xs text-slate-500">{t("mcp.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("mcp.description")}</CardDescription></div><McpExampleDialog /></div>diff --git a/apps/web/src/components/settings/ObjectStorageCard.tsx b/apps/web/src/components/settings/ObjectStorageCard.tsxindex 1031ea43..18f8f50a 100644--- a/apps/web/src/components/settings/ObjectStorageCard.tsx+++ b/apps/web/src/components/settings/ObjectStorageCard.tsx@@ -4,6 +4,13 @@ import { CheckCircle2, Cloud, Database, Loader2, TriangleAlert } from "lucide-reimport { useTranslation } from "react-i18next";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";import { Input } from "@/components/ui/input";import { Switch } from "@/components/ui/switch";import { ApiRequestError, api } from "@/lib/api";@@ -79,12 +86,14 @@ export const ObjectStorageCard = ({ demoMode }: { demoMode: boolean }) => {return (<Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4 sm:p-5">- <CardTitle className="flex items-center gap-2 text-sm">- <Cloud className="h-4 w-4 text-emerald-700" />+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Cloud className={SETTINGS_CARD_ICON_CLASSNAME} />{t("objectStorage.title")}</CardTitle>- <CardDescription>{t("objectStorage.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>+ {t("objectStorage.description")}+ </CardDescription></CardHeader><CardContent className="p-4 pt-0 sm:px-5 sm:pb-5">{settingsQuery.isLoading ? (@@ -103,7 +112,7 @@ export const ObjectStorageCard = ({ demoMode }: { demoMode: boolean }) => {)}>{item === "builtin" ? <Database className="mt-0.5 h-4 w-4 text-emerald-700" /> : <Cloud className="mt-0.5 h-4 w-4 text-emerald-700" />}- <span><span className="block text-sm font-semibold text-slate-800">{t(`objectStorage.providers.${item}.title`)}</span><span className="mt-0.5 block text-xs leading-5 text-slate-500">{t(`objectStorage.providers.${item}.description`)}</span></span>+ <span><span className={cn("block", SETTINGS_ITEM_TITLE_CLASSNAME)}>{t(`objectStorage.providers.${item}.title`)}</span><span className="mt-0.5 block text-xs leading-5 text-slate-500">{t(`objectStorage.providers.${item}.description`)}</span></span></button>))}</div>diff --git a/apps/web/src/components/settings/PasswordCard.tsx b/apps/web/src/components/settings/PasswordCard.tsxindex 86273b7e..72a11955 100644--- a/apps/web/src/components/settings/PasswordCard.tsx+++ b/apps/web/src/components/settings/PasswordCard.tsx@@ -3,6 +3,12 @@ import { useTranslation } from "react-i18next";import { KeyRound } from "lucide-react";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { Input } from "@/components/ui/input";import { ApiRequestError, api } from "@/lib/api";@@ -58,12 +64,14 @@ export const PasswordCard = ({ authRequired, demoMode }: PasswordCardProps) => {return (<Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">- <CardTitle className="flex items-center gap-2 text-sm">- <KeyRound className="h-4 w-4 text-emerald-700" />+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <KeyRound className={SETTINGS_CARD_ICON_CLASSNAME} />{t("password.title")}</CardTitle>- <CardDescription>{t("password.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>+ {t("password.description")}+ </CardDescription></CardHeader><CardContent className="p-4 pt-0">{demoMode ? (diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsxindex 5b729498..4b9e4c52 100644--- a/apps/web/src/components/settings/PreferenceCard.tsx+++ b/apps/web/src/components/settings/PreferenceCard.tsx@@ -20,6 +20,14 @@ import {} from "@/lib/ai-space-shortcut-preference";import { Button } from "@/components/ui/button";import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+ SETTINGS_ITEM_DESCRIPTION_CLASSNAME,+ SETTINGS_ITEM_ICON_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";import { Switch } from "@/components/ui/switch";import {@@ -183,19 +191,19 @@ export const PreferenceCard = ({return (<Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">- <CardTitle className="flex items-center gap-2 text-sm">- <Image className="h-4 w-4 text-emerald-700" />+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Image className={SETTINGS_CARD_ICON_CLASSNAME} />{t("settings.preferences")}</CardTitle></CardHeader><CardContent className="divide-y divide-slate-100 p-0"><div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <Languages className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <Languages className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.languageTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.languageDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.languageTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.languageDescription")}</div></div></div><div className="w-full shrink-0 sm:w-80">@@ -220,10 +228,10 @@ export const PreferenceCard = ({<div className="hidden min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4 lg:flex"><div className="flex min-w-0 items-start gap-3">- <AlignHorizontalJustifyCenter className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <AlignHorizontalJustifyCenter className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.editorContentAlignmentTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.editorContentAlignmentDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.editorContentAlignmentTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.editorContentAlignmentDescription")}</div></div></div><div className="w-full shrink-0 sm:w-44">@@ -244,10 +252,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <Palette className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <Palette className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.editorThemeTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.editorThemeDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.editorThemeTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.editorThemeDescription")}</div></div></div><div className="flex w-full shrink-0 flex-col gap-2 sm:w-80 sm:flex-row">@@ -304,10 +312,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <FileCode2 className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <FileCode2 className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.markdownThemeTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.markdownThemeDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.markdownThemeTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.markdownThemeDescription")}</div></div></div><div className="w-full shrink-0 sm:w-80">@@ -328,10 +336,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <ChartNoAxesCombined className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <ChartNoAxesCombined className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.mermaidThemeTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.mermaidThemeDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.mermaidThemeTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.mermaidThemeDescription")}</div></div></div><div className="w-full shrink-0 sm:w-80">@@ -352,10 +360,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <Image className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <Image className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.imageCompressionTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.imageCompressionDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.imageCompressionTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.imageCompressionDescription")}</div></div></div><div className="flex w-full shrink-0 justify-start sm:w-44 sm:justify-end">@@ -369,10 +377,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <Sparkles className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <Sparkles className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.aiSelectionMenuTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.aiSelectionMenuDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.aiSelectionMenuTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.aiSelectionMenuDescription")}</div></div></div><div className="flex w-full shrink-0 justify-start sm:w-44 sm:justify-end">@@ -389,10 +397,10 @@ export const PreferenceCard = ({<div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4"><div className="flex min-w-0 items-start gap-3">- <Keyboard className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <Keyboard className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.aiSpaceShortcutTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.aiSpaceShortcutDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.aiSpaceShortcutTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.aiSpaceShortcutDescription")}</div></div></div><div className="flex w-full shrink-0 justify-start sm:w-44 sm:justify-end">@@ -410,10 +418,10 @@ export const PreferenceCard = ({{/* Desktop only: mobile editors always open links on a plain tap. */}<div className="hidden min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4 lg:flex"><div className="flex min-w-0 items-start gap-3">- <MousePointerClick className="mt-0.5 h-4 w-4 shrink-0 text-emerald-700" />+ <MousePointerClick className={SETTINGS_ITEM_ICON_CLASSNAME} /><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{t("settings.linkOpenModifierTitle")}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{t("settings.linkOpenModifierDescription")}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.linkOpenModifierTitle")}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.linkOpenModifierDescription")}</div></div></div><div className="flex w-full shrink-0 justify-start sm:w-44 sm:justify-end">diff --git a/apps/web/src/components/settings/ShortcutSettingsItem.tsx b/apps/web/src/components/settings/ShortcutSettingsItem.tsxindex 8fc5f861..32cce071 100644--- a/apps/web/src/components/settings/ShortcutSettingsItem.tsx+++ b/apps/web/src/components/settings/ShortcutSettingsItem.tsx@@ -19,6 +19,11 @@ import {DialogTitle,} from "@/components/ui/dialog";import { cn } from "@/lib/utils";+import {+ SETTINGS_ITEM_DESCRIPTION_CLASSNAME,+ SETTINGS_ITEM_ICON_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";interface ShortcutSettingsItemProps {shortcutSettings: ShortcutSettings;@@ -104,12 +109,12 @@ export const ShortcutSettingsItem = ({ shortcutSettings, onShortcutSettingsChangreturn (<><div className="flex min-h-16 flex-col items-start gap-3 px-4 py-3 sm:flex-row sm:items-center sm:justify-between sm:gap-4">- <div className="min-w-0">- <div className="flex items-center gap-2 text-sm font-semibold text-slate-900">- <Keyboard className="h-4 w-4 text-emerald-700" />- {t("shortcuts.title")}+ <div className="flex min-w-0 items-start gap-3">+ <Keyboard className={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="min-w-0">+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("shortcuts.title")}</div>+ <div className={cn(SETTINGS_ITEM_DESCRIPTION_CLASSNAME, "truncate")}>{shortcutSummary}</div></div>- <div className="mt-0.5 truncate text-xs leading-4 text-slate-500">{shortcutSummary}</div></div><Buttonsize="sm"@@ -142,8 +147,8 @@ export const ShortcutSettingsItem = ({ shortcutSettings, onShortcutSettingsChangclassName="flex min-w-0 flex-col gap-3 rounded-lg border border-slate-200 bg-slate-50/60 p-3 sm:flex-row sm:items-center sm:justify-between"><div className="min-w-0">- <div className="text-sm font-semibold text-slate-900">{item.label}</div>- <div className="mt-0.5 text-xs leading-4 text-slate-500">{item.description}</div>+ <div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{item.label}</div>+ <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{item.description}</div></div><Buttonref={recording ? captureButtonRef : null}diff --git a/apps/web/src/components/settings/SystemInfoCard.tsx b/apps/web/src/components/settings/SystemInfoCard.tsxindex 90d9f8c1..7e56ba83 100644--- a/apps/web/src/components/settings/SystemInfoCard.tsx+++ b/apps/web/src/components/settings/SystemInfoCard.tsx@@ -2,6 +2,12 @@ import { ChevronDown, Info } from "lucide-react";import { useState } from "react";import { useTranslation } from "react-i18next";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+} from "./settings-ui";import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible";import { cn } from "@/lib/utils";import { SystemInfoPanel, type SystemInfoItem, getWebSystemInfoItems } from "./SystemInfoPanel";@@ -16,12 +22,15 @@ export const SystemInfoCard = ({ defaultExpanded = false }: { defaultExpanded?:return (<Collapsible open={expanded} onOpenChange={setExpanded} asChild><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><CollapsibleTrigger asChild><button className="flex w-full min-w-0 items-start justify-between gap-3 text-left" type="button"><span className="min-w-0">- <CardTitle className="flex items-center gap-2 text-sm"><Info className="h-4 w-4 text-emerald-700" />{t("systemInfo.title")}</CardTitle>- <CardDescription className="mt-1 text-xs leading-4">{t("systemInfo.description")}</CardDescription>+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Info className={SETTINGS_CARD_ICON_CLASSNAME} />+ {t("systemInfo.title")}+ </CardTitle>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("systemInfo.description")}</CardDescription></span><ChevronDown className={cn("mt-0.5 h-4 w-4 shrink-0 text-slate-400 transition-transform", expanded ? "rotate-180" : "rotate-0")} /></button>diff --git a/apps/web/src/components/settings/UserManagementCard.tsx b/apps/web/src/components/settings/UserManagementCard.tsxindex 2d62f23f..1253827e 100644--- a/apps/web/src/components/settings/UserManagementCard.tsx+++ b/apps/web/src/components/settings/UserManagementCard.tsx@@ -5,10 +5,18 @@ import { useTranslation } from "react-i18next";import type { InstanceUser } from "@edgeever/shared";import { Button } from "@/components/ui/button";import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card";+import {+ SETTINGS_CARD_DESCRIPTION_CLASSNAME,+ SETTINGS_CARD_HEADER_CLASSNAME,+ SETTINGS_CARD_ICON_CLASSNAME,+ SETTINGS_CARD_TITLE_CLASSNAME,+ SETTINGS_ITEM_TITLE_CLASSNAME,+} from "./settings-ui";import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog";import { Input } from "@/components/ui/input";import { Switch } from "@/components/ui/switch";import { ApiRequestError, api } from "@/lib/api";+import { cn } from "@/lib/utils";interface UserManagementCardProps {demoMode: boolean;@@ -74,14 +82,14 @@ export const UserManagementCard = ({ demoMode }: UserManagementCardProps) => {return (<><Card className="w-full min-w-0 overflow-hidden shadow-none">- <CardHeader className="p-4">+ <CardHeader className={SETTINGS_CARD_HEADER_CLASSNAME}><div className="flex items-start justify-between gap-3"><div>- <CardTitle className="flex items-center gap-2 text-sm">- <Users className="h-4 w-4 text-emerald-700" />+ <CardTitle className={SETTINGS_CARD_TITLE_CLASSNAME}>+ <Users className={SETTINGS_CARD_ICON_CLASSNAME} />{t("users.title")}</CardTitle>- <CardDescription className="mt-1">{t("users.description")}</CardDescription>+ <CardDescription className={SETTINGS_CARD_DESCRIPTION_CLASSNAME}>{t("users.description")}</CardDescription></div><Button size="sm" onClick={() => setCreateOpen(true)}><UserPlus className="h-4 w-4" /> {t("users.create")}@@ -93,7 +101,7 @@ export const UserManagementCard = ({ demoMode }: UserManagementCardProps) => {{usersQuery.data?.users.map((user) => (<div key={user.id} className="flex flex-wrap items-center justify-between gap-3 rounded-lg border border-slate-200 bg-card/40 p-3"><div className="min-w-0">- <p className="truncate text-sm font-semibold text-slate-800">{user.displayName || user.username}</p>+ <p className={cn("truncate", SETTINGS_ITEM_TITLE_CLASSNAME)}>{user.displayName || user.username}</p><p className="truncate text-xs text-slate-500">@{user.username} · {t(`users.roles.${user.role}`)}</p></div><div className="flex items-center gap-3">diff --git a/apps/web/src/components/settings/settings-ui.ts b/apps/web/src/components/settings/settings-ui.tsnew file mode 100644index 00000000..fcff8034--- /dev/null+++ b/apps/web/src/components/settings/settings-ui.ts@@ -0,0 +1,14 @@+/**+ * Unified typography and layout constants for settings cards across all settings panels.+ */+export const SETTINGS_CARD_HEADER_CLASSNAME = "p-4";+export const SETTINGS_CARD_TITLE_CLASSNAME = "flex items-center gap-2 text-sm font-semibold text-slate-900";+export const SETTINGS_CARD_DESCRIPTION_CLASSNAME = "mt-0.5 text-xs leading-relaxed text-slate-500";+export const SETTINGS_CARD_ICON_CLASSNAME = "h-4 w-4 text-emerald-700 shrink-0";++/**+ * Unified typography and layout constants for setting rows/items within cards.+ */+export const SETTINGS_ITEM_TITLE_CLASSNAME = "text-[13px] font-medium text-slate-800";+export const SETTINGS_ITEM_DESCRIPTION_CLASSNAME = "mt-0.5 text-xs leading-4 text-slate-500";+export const SETTINGS_ITEM_ICON_CLASSNAME = "mt-0.5 h-4 w-4 shrink-0 text-slate-500";diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 6dceffcc..3d5fcc28 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -373,6 +373,7 @@ export const enUS = {title: "Me",subtitle: "Preferences, system info, MCP tokens, and sign-in session",preferences: "Preferences",+ preferencesDescription: "Customize interface appearance, editor typography, and shortcut preferences.",languageTitle: "Interface language",languageDescription: "Change the display language for the product UI.",systemLanguage: "Follow system",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex a6198a59..abcaa20b 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -373,6 +373,7 @@ export const zhCN = {title: "我的",subtitle: "个人偏好、系统信息、MCP Token 与登录会话",preferences: "偏好设置",+ preferencesDescription: "自定义界面显示、编辑器排版与快捷键操作偏好。",languageTitle: "界面语言",languageDescription: "切换产品界面的显示语言。",systemLanguage: "跟随系统",