Skip to content

Commit

Permalink
Changes the order of the tool icons and rename "Fit Figure to Screen"…
Browse files Browse the repository at this point in the history
… to "Zoom to Fit" -- #266
  • Loading branch information
chrtannus committed May 9, 2024
1 parent 899905b commit 7efa38d
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/client/components/network-editor/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,21 +322,9 @@ const Main = ({

const menuDef = [
{
title: getUndoMenuTitle(undoType),
icon: <UndoIcon />,
onClick: () => controller.undoHandler.undo(),
isEnabled: () => undoEnabled,
},
// {
// title: "Delete Selected Nodes",
// icon: <DeleteIcon />,
// onClick: () => controller.deleteSelectedNodes(),
// },
{
title: "Restore Network Layout",
icon: <RestoreIcon />,
onClick: handleNetworkRestore,
unrelated: true,
title: "Zoom to Fit",
icon: <FitScreenIcon />,
onClick: panner.fit,
}, {
title: "Zoom In",
icon: <AddIcon />,
Expand All @@ -345,10 +333,6 @@ const Main = ({
title: "Zoom Out",
icon: <RemoveIcon />,
onClick: panner.zoomOut,
}, {
title: "Fit Figure to Screen",
icon: <FitScreenIcon />,
onClick: panner.fit,
unrelated: true,
}, {
title: "Enable Drag-to-Select",
Expand All @@ -358,6 +342,22 @@ const Main = ({
isSelected: () => !cy.userPanningEnabled(),
alwaysShow: true, // always show on desktop/tablet, but still hides on mobile
unrelated: true,
}, {
title: getUndoMenuTitle(undoType),
icon: <UndoIcon />,
onClick: () => controller.undoHandler.undo(),
isEnabled: () => undoEnabled,
},
// {
// title: "Delete Selected Nodes",
// icon: <DeleteIcon />,
// onClick: () => controller.deleteSelectedNodes(),
// },
{
title: "Restore Network Layout",
icon: <RestoreIcon />,
onClick: handleNetworkRestore,
unrelated: true,
}, {
title: "Download Data and Images",
icon: <DownloadIcon />,
Expand Down

0 comments on commit 7efa38d

Please sign in to comment.