Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

style(settings): unify data export & import guide card layout and refine i18n copy

tianma-if9127d570a623
diff --git a/apps/web/src/components/settings/DataExportCard.tsx b/apps/web/src/components/settings/DataExportCard.tsx
index ea456da6..6a6580e1 100644
--- a/apps/web/src/components/settings/DataExportCard.tsx
+++ b/apps/web/src/components/settings/DataExportCard.tsx
@@ -139,18 +139,18 @@ export const DataExportCard = () => {
return (
<>
<Card className="w-full min-w-0 overflow-hidden shadow-none">
- <CardHeader className="p-4 pb-3">
- <CardTitle className="flex items-center gap-2 text-sm">
- <DatabaseBackup className="h-4 w-4 text-emerald-700" />
- {t("dataExport.title")}
- </CardTitle>
- </CardHeader>
- <CardContent className="grid gap-3 p-4 pt-0">
- <div className="grid gap-3 md:grid-cols-[minmax(0,1fr)_auto] md:items-center">
- <div className="min-w-0">
- <CardDescription className="text-xs leading-5">{t("dataExport.description")}</CardDescription>
+ <CardHeader className="p-4 sm:p-5">
+ <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" />
+ {t("dataExport.title")}
+ </CardTitle>
+ <CardDescription className="text-xs leading-relaxed text-slate-500">
+ {t("dataExport.description")}
+ </CardDescription>
</div>
- <div className="flex flex-col gap-2 sm:flex-row">
+ <div className="flex shrink-0 flex-wrap items-center gap-2">
<Button size="sm" variant="outline" type="button" disabled={busy} onClick={() => fileInputRef.current?.click()}>
<Upload className="h-4 w-4" />
{t("dataExport.importButton")}
@@ -162,19 +162,22 @@ export const DataExportCard = () => {
<input ref={fileInputRef} className="hidden" type="file" accept=".zip,application/zip" onChange={(event) => void handleImportFile(event.target.files?.[0])} />
</div>
</div>
-
- {busy ? (
- <div className="grid gap-1.5" aria-live="polite">
- <div className="flex items-center justify-between text-xs text-slate-500">
- <span>{operation === "import" ? t("dataExport.importing") : t("dataExport.working")}</span>
- <span>{t("dataExport.progress", { completed: progress.completed, total: progress.total })}</span>
+ </CardHeader>
+ {(busy || state === "complete" || state === "error") && (
+ <CardContent className="grid gap-3 p-4 pt-0 sm:px-5">
+ {busy ? (
+ <div className="grid gap-1.5" aria-live="polite">
+ <div className="flex items-center justify-between text-xs text-slate-500">
+ <span>{operation === "import" ? t("dataExport.importing") : t("dataExport.working")}</span>
+ <span>{t("dataExport.progress", { completed: progress.completed, total: progress.total })}</span>
+ </div>
+ <Progress progress={progress} />
</div>
- <Progress progress={progress} />
- </div>
- ) : null}
- {state === "complete" ? <p className="flex items-center gap-1.5 text-xs text-emerald-700"><CheckCircle2 className="h-3.5 w-3.5" />{operation === "import" ? t("dataExport.importComplete") : t("dataExport.complete")}</p> : null}
- {state === "error" ? <p className="flex items-center gap-1.5 text-xs text-red-600" role="alert"><AlertCircle className="h-3.5 w-3.5 shrink-0" />{errorMessage}</p> : null}
- </CardContent>
+ ) : null}
+ {state === "complete" ? <p className="flex items-center gap-1.5 text-xs text-emerald-700"><CheckCircle2 className="h-3.5 w-3.5" />{operation === "import" ? t("dataExport.importComplete") : t("dataExport.complete")}</p> : null}
+ {state === "error" ? <p className="flex items-center gap-1.5 text-xs text-red-600" role="alert"><AlertCircle className="h-3.5 w-3.5 shrink-0" />{errorMessage}</p> : null}
+ </CardContent>
+ )}
</Card>
<Dialog open={Boolean(pendingImport)} onOpenChange={(open) => { if (!open) setPendingImport(null); }}>
diff --git a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx b/apps/web/src/components/settings/EvernoteImportGuideCard.tsx
index 656ef56d..d5f1b2a1 100644
--- a/apps/web/src/components/settings/EvernoteImportGuideCard.tsx
+++ b/apps/web/src/components/settings/EvernoteImportGuideCard.tsx
@@ -9,11 +9,19 @@ export const EvernoteImportGuideCard = () => {
return (
<Card className="hidden w-full min-w-0 overflow-hidden shadow-none lg:block">
- <CardHeader className="p-4">
- <CardTitle className="flex items-center gap-2 text-sm">
- <UploadCloud className="h-4 w-4 text-emerald-700" />
- {t("evernoteImport.title")}
- <Button size="sm" variant="outline" className="h-7 gap-1 bg-white px-2.5 text-xs" type="button" asChild>
+ <CardHeader className="p-4 sm:p-5">
+ <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" />
+ {t("evernoteImport.title")}
+ </CardTitle>
+ <CardDescription className="text-xs leading-relaxed text-slate-500">
+ {t("evernoteImport.description")}
+ </CardDescription>
+ </div>
+ <div className="flex shrink-0 items-center gap-2">
+ <Button size="sm" variant="outline" className="h-8 gap-1.5 bg-white px-3 text-xs" type="button" asChild>
<a
href={EVERNOTE_MIGRATION_BLOG_URL}
target="_blank"
@@ -24,8 +32,8 @@ export const EvernoteImportGuideCard = () => {
{t("evernoteImport.guide")}
</a>
</Button>
- </CardTitle>
- <CardDescription className="text-xs leading-4">{t("evernoteImport.description")}</CardDescription>
+ </div>
+ </div>
</CardHeader>
</Card>
);
diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.ts
index cbf4c21c..26e9936d 100644
--- a/packages/shared/src/i18n/en-US.ts
+++ b/packages/shared/src/i18n/en-US.ts
@@ -258,7 +258,7 @@ export const enUS = {
},
dataExport: {
title: "Import and export",
- description: "One archive for openness and complete recovery: read notes directly as Markdown, or use the structured data, revision history, and attachments to migrate between EdgeEver instances.",
+ description: "Export a complete ZIP archive with Markdown notes, attachments, and history for backup or migration.",
exportButton: "Export EdgeEver ZIP",
importButton: "Import EdgeEver ZIP",
working: "Preparing notes and attachments…",
@@ -700,7 +700,7 @@ export const enUS = {
title: "Import Evernote, Notion, and Memos",
guide: "View migration guide",
openGuideAria: "Open the Evernote migration guide in a new tab",
- description: "Review the steps for migrating from Evernote to EdgeEver. MCP and AI Agent batch import are recommended.",
+ description: "Migrate notes from third-party platforms with recommended MCP and AI Agent batch import.",
},
session: {
loggingOut: "Signing out...",
diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.ts
index 29b8f14a..62f9a196 100644
--- a/packages/shared/src/i18n/zh-CN.ts
+++ b/packages/shared/src/i18n/zh-CN.ts
@@ -258,7 +258,7 @@ export const zhCN = {
},
dataExport: {
title: "导入与导出",
- description: "一份同时兼顾开放性与完整恢复的档案:笔记可直接以 Markdown 阅读,结构化数据、历史版本和附件可用于 EdgeEver 实例间迁移。",
+ description: "导出可读 Markdown 笔记、附件与历史版本的 ZIP 档案,用于备份与无损迁移。",
exportButton: "导出 EdgeEver ZIP",
importButton: "导入 EdgeEver ZIP",
working: "正在整理笔记和附件…",
@@ -697,10 +697,10 @@ export const zhCN = {
subtitle: "AI Agent 驱动一键迁移,无损保留笔记本组结构",
},
evernoteImport: {
- title: "导入印象笔记、Notion、Memos。",
+ title: "导入印象笔记、Notion、Memos",
guide: "查看迁移指南",
openGuideAria: "在新标签页打开印象笔记迁移指南",
- description: "查看从印象笔记迁移到 EdgeEver 的步骤,推荐使用 MCP 与 AI Agent 批量导入。",
+ description: "支持从第三方平台快速迁移笔记,推荐使用 MCP 与 AI Agent 批量导入。",
},
session: {
loggingOut: "安全退出中...",