Skip to content

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

Move GitHub link to desktop editor toolbar

tianma1eb6bd1bf0a7
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 818fd8c1..681c6a6d 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -20,6 +20,7 @@ import {
X,
} from "lucide-react";
import { Button } from "@/components/ui/button";
+import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";
import { Input } from "@/components/ui/input";
import {
Command,
@@ -982,6 +983,7 @@ export const EditorPane = ({
<Button className="hidden sm:inline-flex" size="icon" variant="ghost" title="版本历史" aria-label="版本历史" onClick={() => setHistoryOpen(true)}>
<History className="h-4 w-4" />
</Button>
+ <GitHubRepositoryLink className="hidden h-8 w-8 justify-center rounded-md text-slate-500 transition hover:bg-slate-50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 lg:inline-flex" />
{!readOnly && (
<Button
className="hidden sm:inline-flex"
diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsx
index b0d4c598..c0f9ea47 100644
--- a/apps/web/src/components/MemoListPane.tsx
+++ b/apps/web/src/components/MemoListPane.tsx
@@ -39,7 +39,6 @@ import {
TagX,
} from "lucide-react";
import { Button } from "@/components/ui/button";
-import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";
import { ToggleGroup, ToggleGroupItem } from "@/components/ui/toggle-group";
import {
DropdownMenu,
@@ -208,7 +207,6 @@ const MobileHomeHeader = ({
>
<RefreshCw className={cn("h-4 w-4", isSyncingQueuedChanges && "animate-spin")} />
</button>
- <GitHubRepositoryLink className="flex h-7 w-7 justify-center rounded-full text-slate-600 transition hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70" iconClassName="h-4 w-4" />
</div>
</div>
);
@@ -875,14 +873,11 @@ export const MemoListPane = ({
</div>
)}
- <div className="mb-3 hidden min-w-0 items-start justify-between gap-3 lg:flex">
- <div className="min-w-0">
- <div className="truncate text-lg font-semibold leading-6 text-slate-950">{listTitle}</div>
- <div className="mt-0.5 truncate text-xs text-slate-500">
- {listContextLabel} · {listCountLabel}
- </div>
+ <div className="mb-3 hidden min-w-0 lg:block">
+ <div className="truncate text-lg font-semibold leading-6 text-slate-950">{listTitle}</div>
+ <div className="mt-0.5 truncate text-xs text-slate-500">
+ {listContextLabel} · {listCountLabel}
</div>
- <GitHubRepositoryLink className="flex h-8 w-8 shrink-0 justify-center rounded-md border border-slate-200 bg-white text-slate-600 transition hover:bg-slate-50 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70" />
</div>
<div className="mb-3 hidden items-center justify-between gap-2 lg:flex">