-
-
- >
- }
- >
+ const menus = (
+ <>
+
+
+ >
+ );
+
+ const content = (
+ <>
{file?.editingError && (
@@ -189,13 +191,33 @@ const RemotePipelineContent = observer(function RemotePipelineContent({
spec={activeSpec}
nodesDraggable={false}
className="h-full"
- />
+ >
+ {embedded && (
+
+ {menus}
+
+ )}
+
)}
+ >
+ );
+
+ if (embedded) {
+ return {content};
+ }
+
+ return (
+
+ {content}
);
});
diff --git a/src/routes/v2/shared/components/CanvasMenuBar.tsx b/src/routes/v2/shared/components/CanvasMenuBar.tsx
index 3ae3502d4..85d97f620 100644
--- a/src/routes/v2/shared/components/CanvasMenuBar.tsx
+++ b/src/routes/v2/shared/components/CanvasMenuBar.tsx
@@ -3,14 +3,20 @@ import type { PropsWithChildren } from "react";
import logo from "/Tangle_Icon_White.png";
import { InlineStack } from "@/components/ui/layout";
+import { cn } from "@/lib/utils";
import { APP_ROUTES } from "@/routes/appRoutes";
import { TOP_NAV_HEIGHT } from "@/utils/constants";
import { tracking } from "@/utils/tracking";
+export const CANVAS_MENU_SURFACE_CLASS = "bg-stone-900";
+
export function CanvasMenuBar({ children }: PropsWithChildren) {
return (