diff --git a/src/components/Graph/index.tsx b/src/components/Graph/index.tsx index 2910b25..fe4724d 100644 --- a/src/components/Graph/index.tsx +++ b/src/components/Graph/index.tsx @@ -134,7 +134,7 @@ export const Graph = ({ isWidget = false }: GraphProps) => { return ( <> - + e.preventDefault()} widget={isWidget}> theme.BACKGROUND_SECONDARY}; color: ${({ theme }) => theme.SILVER}; box-shadow: 0 1px 0px ${({ theme }) => theme.BACKGROUND_TERTIARY}; @@ -152,8 +152,8 @@ export const Tools: React.FC<{ isWidget?: boolean }> = ({ isWidget = false }) => return ( -
- + {isWidget && ( + = ({ isWidget = false }) => /> - setVisible("import")(true)}> - Import - - - - - - View - - - - - : } - rightSection={ - - {CoreKey} Shift E - - } - > - {fullscreen ? "Show" : "Hide"} Editor - - } - rightSection={ - - {CoreKey} Shift D - - } - > - Rotate Layout - - : } - rightSection={ - - {CoreKey} Shift F - - } - > - {foldNodes ? "Unfold" : "Fold"} Nodes - - : } - rightSection={ - - {CoreKey} Shift C - - } - > - {graphCollapsed ? "Expand" : "Collapse"} Nodes - - - - setVisible("cloud")(true)}> - Cloud - - - Download - -
-
+ )} + {!isWidget && ( + + + + + + + setVisible("import")(true)}> + Import + + + + + + View + + + + + : } + rightSection={ + + {CoreKey} Shift E + + } + > + {fullscreen ? "Show" : "Hide"} Editor + + } + rightSection={ + + {CoreKey} Shift D + + } + > + Rotate Layout + + : } + rightSection={ + + {CoreKey} Shift F + + } + > + {foldNodes ? "Unfold" : "Fold"} Nodes + + : } + rightSection={ + + {CoreKey} Shift C + + } + > + {graphCollapsed ? "Expand" : "Collapse"} Nodes + + + + setVisible("cloud")(true)}> + Cloud + + + Download + + + )} + - setVisible("download")(true)}> - - + {!isWidget && ( + setVisible("download")(true)}> + + + )} @@ -257,7 +274,7 @@ export const Tools: React.FC<{ isWidget?: boolean }> = ({ isWidget = false }) => > -
+
); };