Skip to content

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

feat(web): replace note search button with top-level github link

tianma-if909242f3d9b3
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 2c49e7c7..4aeb1e8a 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -26,7 +26,6 @@ import {
Printer,
Image as ImageIcon,
Share2,
- Search,
Copy,
Lock,
LockOpen,
@@ -3785,18 +3784,6 @@ const RichEditorPane = ({
</Button>
</IconTooltip>
)}
- <IconTooltip label={t("editor.searchCurrentMemo")}>
- <Button
- className="hidden h-8 w-8 text-slate-500 sm:inline-flex"
- size="icon"
- variant="ghost"
- type="button"
- aria-label={t("editor.searchCurrentMemo")}
- onClick={() => openNoteSearch()}
- >
- <Search className="h-4 w-4" aria-hidden="true" />
- </Button>
- </IconTooltip>
{mobileEditingActive && !readOnly && (
<button
className="inline-flex h-8 items-center justify-center rounded-full bg-slate-700 px-3 text-xs font-semibold text-slate-50 transition hover:bg-slate-800 disabled:bg-slate-200 disabled:text-slate-500 sm:hidden"
diff --git a/apps/web/src/components/MemoEditorHeaderActions.tsx b/apps/web/src/components/MemoEditorHeaderActions.tsx
index 378476e6..a63ac7e1 100644
--- a/apps/web/src/components/MemoEditorHeaderActions.tsx
+++ b/apps/web/src/components/MemoEditorHeaderActions.tsx
@@ -5,7 +5,7 @@ import { ExecutionCenterButton } from "@/components/execution/ExecutionCenterBut
import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";
import { SystemInfoDialog } from "@/components/SystemInfoDialog";
import { useAppearanceTheme } from "@/components/ThemeProvider";
-import { Button } from "@/components/ui/button";
+import { Button, buttonVariants } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
@@ -48,6 +48,13 @@ export const MemoEditorHeaderActions = ({
return (
<>
{textNoteActions}
+ <GitHubRepositoryLink
+ className={cn(
+ buttonVariants({ variant: "ghost", size: "icon" }),
+ "hidden text-slate-500 hover:text-slate-950 sm:inline-flex",
+ )}
+ iconClassName="h-4 w-4"
+ />
<ExecutionCenterButton className="h-8 w-8" onClick={onOpenExecutionCenter} />
<DropdownMenu>
<DropdownMenuTrigger asChild>