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
fix(web): drop redundant preference setting descriptions
tianma-ifb46335b9132a
diff --git a/apps/web/src/components/settings/PreferenceCard.tsx b/apps/web/src/components/settings/PreferenceCard.tsxindex fd1a32bf..ee63d5fc 100644--- a/apps/web/src/components/settings/PreferenceCard.tsx+++ b/apps/web/src/components/settings/PreferenceCard.tsx@@ -25,8 +25,6 @@ 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";@@ -347,11 +345,10 @@ export const PreferenceCard = ({</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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <Languages className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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">@@ -375,11 +372,10 @@ export const PreferenceCard = ({</div><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">- <SunMoon className={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <SunMoon className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.themeTitle")}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.themeDescription")}</div></div></div><div className="w-full shrink-0 sm:w-80">@@ -400,11 +396,10 @@ export const PreferenceCard = ({</div><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">- <AppWindow className={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <AppWindow className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.uiFontTitle")}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.uiFontDescription")}</div></div></div><FontChoiceFields@@ -415,11 +410,10 @@ export const PreferenceCard = ({</div><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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <AlignHorizontalJustifyCenter className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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-80">@@ -439,11 +433,10 @@ export const PreferenceCard = ({</div><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">- <BookOpenText className={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <BookOpenText className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.editorBodyFontTitle")}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.editorBodyFontDescription")}</div></div></div><FontChoiceFields@@ -455,11 +448,10 @@ export const PreferenceCard = ({{!isMobile && (<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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <Palette className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("settings.customEditorTheme.settingsTitle")}</div>- <div className={SETTINGS_ITEM_DESCRIPTION_CLASSNAME}>{t("settings.customEditorTheme.settingsDescription")}</div></div></div><div className="flex w-full shrink-0 flex-col gap-2 sm:w-auto sm:flex-row">@@ -473,11 +465,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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <ChartNoAxesCombined className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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">@@ -497,11 +488,10 @@ export const PreferenceCard = ({</div><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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <Image className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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">@@ -514,11 +504,10 @@ export const PreferenceCard = ({</div><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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <Sparkles className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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">@@ -534,11 +523,10 @@ export const PreferenceCard = ({</div><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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <Keyboard className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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">@@ -555,11 +543,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={SETTINGS_ITEM_ICON_CLASSNAME} />+ <div className="flex min-w-0 items-center gap-3">+ <MousePointerClick className="h-4 w-4 shrink-0 text-slate-500" /><div className="min-w-0"><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/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 9b831dc8..8348d3c5 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -744,10 +744,8 @@ export const enUS = {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",imageCompressionTitle: "Compress note images",- imageCompressionDescription: "Compress large images locally before upload to reduce storage use.",imageCompressionAria: "Compress note images",aiTagPromptTitle: "AI tag suggestion instruction",aiTagPromptDescription: "Customize how AI derives tags from note content. This workspace setting is shared by every client.",@@ -755,28 +753,22 @@ export const enUS = {aiTagPromptSaved: "The AI tag suggestion instruction was saved.",aiTagPromptFailed: "Failed to save the AI tag suggestion instruction.",aiSelectionMenuTitle: "Show AI assistant when text is selected",- aiSelectionMenuDescription: "Show an AI assistant action when text is selected in the rich-text editor. Turn this off to use AI manually from the editor toolbar instead.",aiSelectionMenuAria: "Show the AI assistant action when text is selected",aiSpaceShortcutTitle: "Open AI with Space in an empty block",- aiSpaceShortcutDescription: "Press Space in an empty rich-text block to open the AI assistant. Turn this off to enter a normal space instead.",aiSpaceShortcutAria: "Open AI with Space in an empty block",linkOpenModifierTitle: "Open web links with Ctrl/⌘ + click while editing",- linkOpenModifierDescription: "On by default: hold Ctrl/⌘ and click to open web links, preventing accidental opens while editing. Note references always open with one click. Desktop only.",linkOpenModifierAria: "Require Ctrl or ⌘ click to open web links while editing",mermaidThemeTitle: "Diagram theme",- mermaidThemeDescription: "Follow the app appearance or choose a fixed visual theme for diagrams.",markdownThemeTitle: "Markdown source theme",markdownThemeDescription: "Follow the app appearance or choose a fixed syntax highlighting theme for Markdown source editing.",editorThemeTitle: "Editor theme",editorThemeDescription: "Choose a writing style for the note editor. Saved in this browser. Copy to WeChat uses the same style.",editorContentAlignmentTitle: "Note content layout",- editorContentAlignmentDescription: "Choose how note content is displayed across all notes on desktop. Saved in this browser.",editorContentAlignments: {center: "Optimize readability (centered)",start: "Align left",},editorBodyFontTitle: "Note text font",- editorBodyFontDescription: "Applies only to this device; shared and exported notes remain unchanged.",editorBodyFonts: {system: "System",wenkai: "LXGW WenKai",@@ -792,7 +784,6 @@ export const enUS = {editorBodyFontCustomPlaceholder: "LXGW WenKai",editorBodyFontSuggestions: "Common fonts",uiFontTitle: "Interface font",- uiFontDescription: "Adjusts interface chrome on this device without altering note contents.",editorThemes: {default: "Native theme",letter: "Warm Page",@@ -815,7 +806,6 @@ export const enUS = {title: "Custom editor theme",description: "Adjust editor colors. This setting is saved in the current browser.",settingsTitle: "Custom theme",- settingsDescription: "Switch editor themes from the toolbar. Manage browser-only custom palettes here.",defaultName: "Custom theme",newName: "New theme {{n}}",create: "Create new theme…",@@ -886,7 +876,6 @@ export const enUS = {"gruvbox-dark": "Gruvbox Dark",},themeTitle: "Interface theme",- themeDescription: "Choose light, dark, or follow your system setting.",themeSystem: "Follow system",themeLight: "Light",themeDark: "Dark",diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex c17612c9..519dd21c 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -744,10 +744,8 @@ export const ja = {preferences: "設定",preferencesDescription: "画面の見た目、エディタの書体、ショートカットの好みを調整します。",languageTitle: "表示言語",- languageDescription: "製品 UI の表示言語を切り替えます。",systemLanguage: "システムに合わせる",imageCompressionTitle: "ノート内の画像を圧縮",- imageCompressionDescription: "大きな画像はアップロード前に端末で圧縮し、保存容量を抑えます。",imageCompressionAria: "ノート内の画像を圧縮する",aiTagPromptTitle: "AI タグ提案の指示",aiTagPromptDescription: "ノート本文からタグをどう作るかをカスタマイズします。このワークスペース設定はすべてのクライアントで共有されます。",@@ -755,28 +753,22 @@ export const ja = {aiTagPromptSaved: "AI タグ提案の指示を保存しました。",aiTagPromptFailed: "AI タグ提案の指示を保存できませんでした。",aiSelectionMenuTitle: "文字選択時に AI アシスタントを表示",- aiSelectionMenuDescription: "リッチテキストエディタで文字を選ぶと AI アシスタント操作を表示します。オフにすると、エディタツールバーから手動で AI を使えます。",aiSelectionMenuAria: "文字選択時に AI アシスタント操作を表示する",aiSpaceShortcutTitle: "空のブロックで Space から AI を開く",- aiSpaceShortcutDescription: "リッチテキストの空のブロックで Space を押すと AI アシスタントが開きます。オフにすると通常のスペース入力になります。",aiSpaceShortcutAria: "空のブロックで Space から AI を開く",linkOpenModifierTitle: "編集中は Ctrl/⌘ + クリックでウェブリンクを開く",- linkOpenModifierDescription: "既定はオンです。ウェブリンクは Ctrl/⌘ を押しながらクリックして開き、編集中の誤操作を防ぎます。ノート参照は常に 1 クリックで開きます。デスクトップのみです。",linkOpenModifierAria: "編集中のウェブリンクは Ctrl または ⌘ クリックで開く",mermaidThemeTitle: "図のテーマ",- mermaidThemeDescription: "アプリの外観に合わせるか、図の見た目を固定テーマにします。",markdownThemeTitle: "Markdown ソースのテーマ",markdownThemeDescription: "アプリの外観に合わせるか、Markdown ソース編集のシンタックスハイライトを固定します。",editorThemeTitle: "エディタテーマ",editorThemeDescription: "ノートエディタの書き味を選びます。このブラウザに保存されます。微信公式アカウント向けコピーでも同じスタイルを使います。",editorContentAlignmentTitle: "ノート本文のレイアウト",- editorContentAlignmentDescription: "デスクトップですべてのノート本文をどう表示するかを選びます。このブラウザに保存されます。",editorContentAlignments: {center: "読みやすさを優先(中央)",start: "左揃え",},editorBodyFontTitle: "ノート本文のフォント",- editorBodyFontDescription: "この端末の本文表示のみに適用され、共有やエクスポートには影響しません。",editorBodyFonts: {system: "システム",wenkai: "霞鹜文楷",@@ -792,7 +784,6 @@ export const ja = {editorBodyFontCustomPlaceholder: "LXGW WenKai",editorBodyFontSuggestions: "定番フォント",uiFontTitle: "画面のフォント",- uiFontDescription: "この端末の操作画面フォントのみを変更し、ノート内容には影響しません。",editorThemes: {default: "標準テーマ",letter: "あたたかな紙",@@ -815,7 +806,6 @@ export const ja = {title: "カスタムエディタテーマ",description: "エディタの色を調整します。この設定は現在のブラウザに保存されます。",settingsTitle: "カスタムテーマ",- settingsDescription: "エディタテーマはツールバーで切り替えます。ここではこのブラウザだけのカスタム配色を管理します。",defaultName: "カスタムテーマ",newName: "新しいテーマ {{n}}",create: "新しいテーマを作成…",@@ -886,7 +876,6 @@ export const ja = {"gruvbox-dark": "Gruvbox ダーク",},themeTitle: "画面テーマ",- themeDescription: "ライト、ダーク、またはシステム設定に合わせるかを選びます。",themeSystem: "システムに合わせる",themeLight: "ライト",themeDark: "ダーク",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex c0243c0c..9daf2743 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -744,10 +744,8 @@ export const zhCN = {preferences: "偏好设置",preferencesDescription: "自定义界面显示、编辑器排版与快捷键操作偏好。",languageTitle: "界面语言",- languageDescription: "切换产品界面的显示语言。",systemLanguage: "跟随系统",imageCompressionTitle: "压缩笔记内图片",- imageCompressionDescription: "上传大图时在本地压缩,节省资源占用。",imageCompressionAria: "是否压缩笔记内图片",aiTagPromptTitle: "AI 标签建议指令",aiTagPromptDescription: "自定义 AI 如何根据笔记内容生成标签。此设置保存在工作区,各端共用。",@@ -755,28 +753,22 @@ export const zhCN = {aiTagPromptSaved: "AI 标签建议指令已保存。",aiTagPromptFailed: "AI 标签建议指令保存失败。",aiSelectionMenuTitle: "选中文字时显示 AI 助手",- aiSelectionMenuDescription: "开启后,在富文本编辑器中选中文字会显示 AI 助手入口;关闭后仍可通过编辑器工具栏手动使用 AI。",aiSelectionMenuAria: "选中文字时是否显示 AI 助手入口",aiSpaceShortcutTitle: "空白段落按 Space 唤起 AI",- aiSpaceShortcutDescription: "开启后,在富文本编辑器的空白段落按 Space 会打开 AI 助手;关闭后 Space 恢复普通输入。",aiSpaceShortcutAria: "空白段落按 Space 是否唤起 AI",linkOpenModifierTitle: "编辑时用 Ctrl/⌘ + 点击打开网页链接",- linkOpenModifierDescription: "默认开启:网页链接需按住 Ctrl/⌘ 再点击,避免编辑时误触;笔记引用始终单击打开(仅桌面)。",linkOpenModifierAria: "编辑时是否需要 Ctrl 或 ⌘ 再点击才能打开网页链接",mermaidThemeTitle: "图表主题",- mermaidThemeDescription: "跟随应用外观,或为笔记图表选择固定主题。",markdownThemeTitle: "Markdown 源码主题",markdownThemeDescription: "跟随应用外观,或为 Markdown 源码编辑模式选择固定的代码高亮配色。",editorThemeTitle: "编辑器主题",editorThemeDescription: "选择正文编辑区的排版风格,偏好会保存在当前浏览器中。复制到公众号时使用同一套风格。",editorContentAlignmentTitle: "笔记正文布局",- editorContentAlignmentDescription: "选择桌面端所有笔记的正文显示方式,偏好会保存在当前浏览器中。",editorContentAlignments: {center: "优化可读性(居中)",start: "靠左显示",},editorBodyFontTitle: "笔记正文字体",- editorBodyFontDescription: "仅在当前设备生效,不影响公开分享与导出排版。",editorBodyFonts: {system: "跟随系统",wenkai: "霞鹜文楷",@@ -792,7 +784,6 @@ export const zhCN = {editorBodyFontCustomPlaceholder: "例如 LXGW WenKai",editorBodyFontSuggestions: "常用字体推荐",uiFontTitle: "界面字体",- uiFontDescription: "仅调整当前设备的操作界面文字,不影响笔记内容。",editorThemes: {default: "原生主题",letter: "日暖素笺",@@ -815,7 +806,6 @@ export const zhCN = {title: "自定义编辑器主题",description: "调整正文编辑区的颜色,设置仅保存在当前浏览器中。",settingsTitle: "自定义主题",- settingsDescription: "全部排版主题在编辑器工具栏切换。这里只管理保存在当前浏览器中的自定义配色。",defaultName: "自定主题",newName: "新主题 {{n}}",create: "新建主题…",@@ -886,7 +876,6 @@ export const zhCN = {"gruvbox-dark": "Gruvbox 深色",},themeTitle: "界面主题",- themeDescription: "选择浅色、深色,或跟随系统设置。",themeSystem: "跟随系统",themeLight: "浅色",themeDark: "深色",