chore: commit workspace updates
This commit is contained in:
1 parent
4eeef3cfd8
commit
4b0e9d8965
490 files changed
+12826
-72249
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import { Tooltip } from "@/components/ui/base/tooltip";
|
||||
import { motion, useReducedMotion } from "motion/react";
|
||||
import { Bot, PanelBottom, X, ZoomIn, ZoomOut } from "lucide-react";
|
||||
import { PanelBottom, X, ZoomIn, ZoomOut } from "lucide-react";
|
||||
|
||||
|
||||
import { aceternityMotion } from "@/lib/aceternity-motion";
|
||||
@@ -9,17 +9,15 @@ import { useThemeStore } from "@/stores/use-theme-store";
|
||||
|
||||
type CanvasFocusModeBarProps = {
|
||||
dockRevealed: boolean;
|
||||
agentOpen: boolean;
|
||||
zoomPercent: number;
|
||||
onToggleDock: () => void;
|
||||
onToggleAgent: () => void;
|
||||
onExit: () => void;
|
||||
onZoomIn: () => void;
|
||||
onZoomOut: () => void;
|
||||
onFit: () => void;
|
||||
};
|
||||
|
||||
export function CanvasFocusModeBar({ dockRevealed, agentOpen, zoomPercent, onToggleDock, onToggleAgent, onExit, onZoomIn, onZoomOut, onFit }: CanvasFocusModeBarProps) {
|
||||
export function CanvasFocusModeBar({ dockRevealed, zoomPercent, onToggleDock, onExit, onZoomIn, onZoomOut, onFit }: CanvasFocusModeBarProps) {
|
||||
const theme = canvasThemes[useThemeStore((state) => state.theme)];
|
||||
const reducedMotion = useReducedMotion();
|
||||
|
||||
@@ -57,19 +55,6 @@ export function CanvasFocusModeBar({ dockRevealed, agentOpen, zoomPercent, onTog
|
||||
<PanelBottom className="size-4" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<Tooltip title={agentOpen ? "收起智能体" : "智能体"}>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onToggleAgent}
|
||||
className="grid size-8 place-items-center rounded-full transition hover:bg-black/5 dark:hover:bg-white/10"
|
||||
style={{ color: theme.node.text, background: agentOpen ? theme.toolbar.itemHover : undefined }}
|
||||
aria-label="智能体"
|
||||
aria-pressed={agentOpen}
|
||||
>
|
||||
<Bot className="size-4" />
|
||||
</button>
|
||||
</Tooltip>
|
||||
<span className="mx-0.5 h-4 w-px" style={{ background: theme.toolbar.border }} />
|
||||
<Tooltip title="缩小">
|
||||
<button type="button" onClick={onZoomOut} className="grid size-8 place-items-center rounded-full transition hover:bg-black/5 dark:hover:bg-white/10" style={{ color: theme.node.text }} aria-label="缩小">
|
||||
<ZoomOut className="size-4" />
|
||||
|
||||
Reference in new issue
Block a user