diff --git a/components/flow-board/drawnix-workspace.tsx b/components/flow-board/drawnix-workspace.tsx index aab5d2434..9e9c2a165 100644 --- a/components/flow-board/drawnix-workspace.tsx +++ b/components/flow-board/drawnix-workspace.tsx @@ -31,7 +31,6 @@ import { fetchUploadWithRetry } from "@/lib/client/upload-with-retry"; import { CheckCircle2, ChevronDown, - ChevronLeft, FileText, FolderOpen, Flag, @@ -47,6 +46,12 @@ import { X, } from "lucide-react"; import { useTheme } from "next-themes"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "@/components/ui/tooltip"; import { type ChangeEvent, type ClipboardEvent, @@ -116,6 +121,10 @@ const FLOW_BOARD_IMAGE_UPLOAD_TYPES = new Set([ "image/png", "image/webp", ]); +const FLOW_BOARD_SIDEBAR_BUTTON_CLASS = + "flex h-10 w-10 items-center justify-center rounded-full text-[#4f566b] transition-colors hover:bg-black/5 hover:text-[#111827] disabled:cursor-not-allowed disabled:opacity-45"; +const FLOW_BOARD_SIDEBAR_BUTTON_ACTIVE_CLASS = + "bg-[#111827] text-white shadow-sm hover:bg-[#1f2937] hover:text-white"; const FLOW_BOARD_MARKER_GROUPS: FlowBoardMarkerGroup[] = [ { id: "tag", @@ -1374,132 +1383,154 @@ export function DrawnixWorkspace({ ref={mindMapFileInputRef} type="file" /> -
-
- - -
- -
- {displayLogo ? ( - {siteName} - ) : ( -
- {siteName.slice(0, 1).toUpperCase()} -
- )} -
- setCurrentTitle(event.target.value)} - onKeyDown={(event) => { - if (event.key === "Enter") { - event.currentTarget.blur(); - } - }} - value={currentTitle} - /> - - {siteName} - -
-
- -
- -
-
+
- -
- - - {formatSavedAt(lastSavedAt)} - +
+
+ 流程白板
+ setCurrentTitle(event.target.value)} + onKeyDown={(event) => { + if (event.key === "Enter") { + event.currentTarget.blur(); + } + }} + value={currentTitle} + />
-
-
+ +
+ + + + + 保存云端 + + + + + + + 云文件 + + + + + + + 导入 + + + + + + + 标记 + + + + + + + 新建 + +
+ +
+ + + {formatSavedAt(lastSavedAt)} + +
+ + {isFilePanelOpen ? (