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
refactor(settings): remove nested gray cards for ACP status and default model
tianma-if182fa39ab521
diff --git a/apps/web/src/components/settings/AiModelCard.tsx b/apps/web/src/components/settings/AiModelCard.tsxindex d12d3b68..5011dcc7 100644--- a/apps/web/src/components/settings/AiModelCard.tsx+++ b/apps/web/src/components/settings/AiModelCard.tsx@@ -146,8 +146,8 @@ export const AiModelCard = () => {</p>) : null}- <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="space-y-2">+ <div className="flex items-center justify-between gap-3"><div className="min-w-0"><div className={SETTINGS_ITEM_TITLE_CLASSNAME}>{t("aiModel.defaultModel")}</div></div>@@ -169,13 +169,13 @@ export const AiModelCard = () => {</Select></div></div>+ {!defaultModelAvailable ? (+ <p className="flex items-center gap-1.5 text-xs text-amber-700">+ <TriangleAlert className="h-3.5 w-3.5 shrink-0" />+ {t("aiModel.defaultUnavailable")}+ </p>+ ) : null}</div>- {!defaultModelAvailable ? (- <p className="flex items-center gap-1.5 text-xs text-amber-700">- <TriangleAlert className="h-3.5 w-3.5 shrink-0" />- {t("aiModel.defaultUnavailable")}- </p>- ) : null}<section className="grid gap-3"><div className="flex items-center justify-end">diff --git a/apps/web/src/components/settings/DesktopAcpAgentCard.tsx b/apps/web/src/components/settings/DesktopAcpAgentCard.tsxindex a5769875..38644442 100644--- a/apps/web/src/components/settings/DesktopAcpAgentCard.tsx+++ b/apps/web/src/components/settings/DesktopAcpAgentCard.tsx@@ -317,7 +317,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {</label>) : null}- <div className="rounded-lg border border-slate-200/80 bg-slate-50/70 p-3 sm:p-3.5 space-y-2.5">+ <div className="space-y-2.5 pt-1"><div className="flex flex-wrap items-center justify-between gap-3"><div className="flex min-w-0 flex-wrap items-center gap-2"><span@@ -371,7 +371,7 @@ const DesktopAcpAgentCardBody = ({ bridge }: { bridge: boolean }) => {</div>{hasDetails ? (- <div className="space-y-2 border-t border-slate-200/70 pt-2.5">+ <div className="space-y-2">{shown?.state === "not_installed" ? (<p className="text-xs leading-relaxed text-slate-600">{t(adapterId === "grokBuild" ? "aiAssistant.agentSource.grokBuildMissingHint" : adapterId === "deepseekHarness" ? "aiAssistant.agentSource.deepseekHarnessMissingHint" : adapterId === "piAgent" ? shown.detail === "adapter_missing" ? "aiAssistant.agentSource.piAgentAdapterMissingHint" : "aiAssistant.agentSource.piAgentMissingHint" : adapterId === "workbuddyCn" || adapterId === "workbuddyIntl" ? "aiAssistant.agentSource.workbuddyMissingHint" : "aiAssistant.agentSource.installHint")}