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): keep system info accessible on compact desktops
tianma-if76b70810ff91
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex caad833b..4748c68f 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -4127,6 +4127,16 @@ const RichEditorPane = ({<History className="h-4 w-4 text-slate-500" />{t("editor.versionHistory")}</DropdownMenuItem>+ <DropdownMenuItem+ className="flex h-9 w-full items-center gap-2 px-3 text-left text-sm text-slate-700 hover:bg-slate-50 cursor-pointer outline-none min-[1600px]:hidden"+ onClick={() => setSystemInfoOpen(true)}+ >+ <span className="relative flex h-4 w-4 shrink-0 items-center justify-center">+ <Info className="h-4 w-4 text-slate-500" />+ {deployedUpdateUnseen ? <span className="absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-1 ring-white" /> : null}+ </span>+ {t("systemInfo.title")}+ </DropdownMenuItem>{!effectiveReadOnly && (<DropdownMenuItemclassName={cn(diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsxindex 1ed74c63..dbebb8f4 100644--- a/apps/web/src/components/SettingsPane.tsx+++ b/apps/web/src/components/SettingsPane.tsx@@ -369,6 +369,25 @@ export const SettingsPane = ({</button>);})}+ <div className="mt-auto overflow-hidden rounded-xl border border-slate-200 bg-white">+ <button+ type="button"+ onClick={() => setSystemInfoOpen(true)}+ className="flex min-h-16 w-full items-center justify-between gap-3 px-3.5 py-2.5 text-left text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"+ >+ <span className="flex min-w-0 items-center gap-2">+ <span className="relative flex h-4 w-4 shrink-0 items-center justify-center">+ <Info className="h-4 w-4 text-emerald-600" />+ {deployedUpdateUnseen ? <span className="absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-1 ring-white" /> : null}+ </span>+ <span className="min-w-0">+ <span className="block truncate text-sm font-semibold">{t("systemInfo.title")}</span>+ <span className="mt-0.5 block truncate text-xs font-normal text-slate-500">{t("systemInfo.description")}</span>+ </span>+ </span>+ <ChevronRight className="h-4 w-4 shrink-0 text-slate-400" />+ </button>+ </div></aside>{/* 右侧设置内容区 */}diff --git a/apps/web/src/components/SystemInfoAccess.test.mjs b/apps/web/src/components/SystemInfoAccess.test.mjsnew file mode 100644index 00000000..9dae53df--- /dev/null+++ b/apps/web/src/components/SystemInfoAccess.test.mjs@@ -0,0 +1,20 @@+import { describe, expect, test } from "bun:test";+import { readFileSync } from "node:fs";++const editorPaneSource = readFileSync(new URL("./EditorPane.tsx", import.meta.url), "utf8");+const settingsPaneSource = readFileSync(new URL("./SettingsPane.tsx", import.meta.url), "utf8");++describe("system information access", () => {+ test("keeps a compact-workspace entry in the editor overflow menu", () => {+ expect(editorPaneSource).toMatch(+ /<DropdownMenuItem[\s\S]*?min-\[1600px\]:hidden[\s\S]*?setSystemInfoOpen\(true\)[\s\S]*?systemInfo\.title[\s\S]*?<\/DropdownMenuItem>/,+ );+ });++ test("keeps an entry in the desktop settings layout", () => {+ const desktopSettings = settingsPaneSource.match(/桌面端布局:双栏[\s\S]*?移动端布局/)?.[0];++ expect(desktopSettings).toContain("setSystemInfoOpen(true)");+ expect(desktopSettings).toContain('t("systemInfo.title")');+ });+});