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(web): simplify shared note and notebook indicators
tianma-ife711bb588041
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex 973501e1..849da2b3 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -27,6 +27,7 @@ import {Printer,Image as ImageIcon,Share2,+ Globe,Copy,Lock,LockOpen,@@ -4055,12 +4056,7 @@ const RichEditorPane = ({{!readOnly && (!mobileEditingActive || isMemoShared) && (<IconTooltip label={t(isLocalMemoId(memo.id) ? "sharing.afterSync" : isMemoShared ? "sharing.manage" : "sharing.action")}><Button- className={cn(- "h-8 w-8",- isMemoShared- ? "bg-[#d4d4d4] text-[#2a2a2a] hover:bg-[#e4e4e4] hover:text-[#2a2a2a]"- : "text-slate-500",- )}+ className="h-8 w-8 text-slate-500"size="icon"variant="ghost"type="button"@@ -4069,7 +4065,7 @@ const RichEditorPane = ({disabled={isLocalMemoId(memo.id)}onClick={() => setShareOpen(true)}>- <Share2 className="h-4 w-4" aria-hidden="true" />+ {isMemoShared ? <Globe className="h-4 w-4" aria-hidden="true" /> : <Share2 className="h-4 w-4" aria-hidden="true" />}</Button></IconTooltip>)}@@ -4191,12 +4187,12 @@ const RichEditorPane = ({<DropdownMenuItemclassName={cn("flex h-9 w-full items-center gap-2 px-3 text-left text-xs hover:bg-slate-50 cursor-pointer outline-none",- isMemoShared ? "bg-workspace-selection text-slate-950" : "text-slate-700",+ isMemoShared ? "text-slate-950" : "text-slate-700",)}disabled={isLocalMemoId(memo.id)}onClick={() => setShareOpen(true)}>- <Share2 className={cn("h-4 w-4", isMemoShared ? "text-slate-950" : "text-slate-500")} />+ {isMemoShared ? <Globe className="h-4 w-4 text-slate-950" /> : <Share2 className="h-4 w-4 text-slate-500" />}{t(isLocalMemoId(memo.id) ? "sharing.afterSync" : isMemoShared ? "sharing.manage" : "sharing.action")}</DropdownMenuItem>)}diff --git a/apps/web/src/components/NotebookTreeItem.tsx b/apps/web/src/components/NotebookTreeItem.tsxindex 4b00fd27..8cfa7894 100644--- a/apps/web/src/components/NotebookTreeItem.tsx+++ b/apps/web/src/components/NotebookTreeItem.tsx@@ -233,7 +233,6 @@ export const NotebookTreeItem = ({) : (<span className="h-6 w-5 shrink-0" aria-hidden="true" />)}- <TooltipProvider><Tooltip><TooltipTrigger asChild><buttondata-notebook-tree-buttonclassName="flex min-w-0 flex-1 items-center gap-2 text-left"@@ -286,7 +285,13 @@ export const NotebookTreeItem = ({>{node.name}</span>- {publicNotebook ? <Globe className={cn("h-3.5 w-3.5 shrink-0", selected ? "text-slate-700" : "text-slate-500")} aria-label={t("sharing.notebookPublic")} /> : null}+ {publicNotebook ? (+ <Globe+ className={cn("h-3.5 w-3.5 shrink-0", selected ? "text-slate-700" : "text-slate-500")}+ role="img"+ aria-label={t("sharing.notebookPublic")}+ />+ ) : null}<spanclassName={cn("shrink-0 tabular-nums text-xs font-normal transition-colors duration-200",@@ -297,7 +302,6 @@ export const NotebookTreeItem = ({{formatNotebookMemoCount({ directCount: node.directMemoCount, totalCount: node.memoCount, hasChildren }, showDescendantNotes)}</span></button>- </TooltipTrigger><TooltipContent>{publicNotebook ? t("sharing.notebookPublic") : node.name}</TooltipContent></Tooltip></TooltipProvider><div ref={actionsRef} className="relative shrink-0"><TooltipProvider><Tooltip><TooltipTrigger asChild><button