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(plugins): shorten marketplace copy so the header stays aligned
tianma-if929c89a31d8a
diff --git a/apps/web/src/components/settings/PluginManagerCard.test.mjs b/apps/web/src/components/settings/PluginManagerCard.test.mjsindex 8ff74fc9..781ea89f 100644--- a/apps/web/src/components/settings/PluginManagerCard.test.mjs+++ b/apps/web/src/components/settings/PluginManagerCard.test.mjs@@ -25,6 +25,13 @@ describe("plugin manager card layout", () => {expect(catalogCard).toContain("getPluginCatalogRepositoryUrl(item)");});+ test("keeps marketplace description below the title row instead of beside header actions", () => {+ expect(source).toContain("{t(\"plugins.syncDescription\")}");+ expect(source).toContain('<div className="flex items-center justify-between gap-3">');+ expect(source).toContain('<p className="text-xs leading-5 text-slate-500">{t("plugins.syncDescription")}</p>');+ expect(source).not.toContain("flex items-start justify-between gap-3");+ });+test("shows update checks when marketplace plugins exist without installed extensions", () => {expect(source).toContain("snapshot.extensions.length > 0 || (marketplaceQuery.data?.entries.length ?? 0) > 0");expect(source).not.toContain("{snapshot.extensions.length > 0 ? (\n <Button");diff --git a/apps/web/src/components/settings/PluginManagerCard.tsx b/apps/web/src/components/settings/PluginManagerCard.tsxindex 096d9c6d..6024fd3b 100644--- a/apps/web/src/components/settings/PluginManagerCard.tsx+++ b/apps/web/src/components/settings/PluginManagerCard.tsx@@ -401,20 +401,15 @@ export const PluginManagerCard = ({return (<Card className="w-full min-w-0 shadow-none"><CardHeader className="p-4 sm:p-5">- <div className="flex items-start justify-between gap-3">- <div className="min-w-0">- <CardTitle className="flex items-center gap-2 text-sm">- <Puzzle className="h-4 w-4 text-emerald-700" />- {selectedPluginId ? t("plugins.details.title") : t("plugins.title")}- <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 ">- Beta- </span>- </CardTitle>- {selectedPluginId ? null : (- <p className="mt-1 text-xs leading-5 text-slate-500">{t("plugins.syncDescription")}</p>- )}- </div>- <div className="flex items-center gap-1">+ <div className="flex items-center justify-between gap-3">+ <CardTitle className="flex min-w-0 items-center gap-2 text-sm">+ <Puzzle className="h-4 w-4 shrink-0 text-emerald-700" />+ {selectedPluginId ? t("plugins.details.title") : t("plugins.title")}+ <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">+ Beta+ </span>+ </CardTitle>+ <div className="flex shrink-0 items-center gap-1">{snapshot.extensions.length > 0 || (marketplaceQuery.data?.entries.length ?? 0) > 0 ? (<Buttonvariant="ghost"@@ -443,11 +438,14 @@ export const PluginManagerCard = ({<a href={developerDocsUrl} target="_blank" rel="noreferrer" aria-label={t("plugins.developerDocs")}><BookOpen className="h-4 w-4" /><span className="hidden sm:inline">{t("plugins.developerDocs")}</span>- <ExternalLink className="hidden h-3.5 w-3.5 sm:block" />+ <ExternalLink className="hidden h-3.5 w-3.5 sm:inline" /></a></Button></div></div>+ {selectedPluginId ? null : (+ <p className="text-xs leading-5 text-slate-500">{t("plugins.syncDescription")}</p>+ )}</CardHeader><CardContent className="grid gap-4 p-4 pt-0 sm:px-5 sm:pb-5">{error ? <div role="alert" className="rounded-lg border border-rose-200 bg-rose-50 p-3 text-xs text-rose-700">{error}</div> : null}diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex e710f484..dff8dbc6 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -718,7 +718,7 @@ export const enUS = {install: "Install",installing: "Installing…",empty: "This workspace has no plugins or themes installed yet.",- syncDescription: "The install list follows this workspace on Web and desktop. Each browser or desktop app downloads the packages itself. Android and iOS apps do not run plugins. Settings and secrets stay on this device.",+ syncDescription: "The install list follows this workspace on Web and desktop. Settings and secrets stay on this device.",permissions: {publicNetwork: "Read content from any public website",},diff --git a/packages/shared/src/i18n/ja.ts b/packages/shared/src/i18n/ja.tsindex 3f6bcf3e..471eeba5 100644--- a/packages/shared/src/i18n/ja.ts+++ b/packages/shared/src/i18n/ja.ts@@ -718,7 +718,7 @@ export const ja = {install: "インストール",installing: "インストール中…",empty: "このワークスペースには、まだプラグインやテーマがありません。",- syncDescription: "インストール一覧はこのワークスペースに従い、Web とデスクトップで共有されます。各ブラウザまたはデスクトップアプリがパッケージを自分でダウンロードします。Android と iOS アプリはプラグインを実行しません。設定とシークレットはこの端末に残ります。",+ syncDescription: "インストール一覧はこのワークスペースに従い、Web とデスクトップで共有されます。設定とシークレットはこの端末に残ります。",permissions: {publicNetwork: "任意の公開ウェブサイトの内容を読む",},diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 01c34496..2d49f167 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -718,7 +718,7 @@ export const zhCN = {install: "安装",installing: "安装中…",empty: "这个工作区还没有安装插件或主题。",- syncDescription: "安装清单会随这个工作区在 Web 和桌面端之间同步,每个浏览器或桌面应用会自行下载并校验插件包。Android 和 iOS 应用不运行插件。设置和密钥仍只保存在当前设备。",+ syncDescription: "安装清单会随这个工作区在 Web 和桌面端之间同步。设置和密钥仍只保存在当前设备。",permissions: {publicNetwork: "读取任意公开网站内容",},