diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 4f07689..3f2e4bc 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -18,17 +18,19 @@ "typecheck": "tsc --noEmit" }, "dependencies": { + "@l2beat/discovery-types": "0.4.1", + "@total-typescript/ts-reset": "^0.3.7", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.9", "classnames": "^2.3.2", + "d3-force": "^3.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "zod": "^3.20.2", - "zustand": "^4.3.2", - "@total-typescript/ts-reset": "^0.3.7", - "@l2beat/discovery-types": "0.4.1" + "zustand": "^4.3.2" }, "devDependencies": { + "@types/d3-force": "^3.0.9", "@vitejs/plugin-react-swc": "^3.0.0", "autoprefixer": "^10.4.13", "postcss": "^8.4.21", diff --git a/packages/frontend/src/App.tsx b/packages/frontend/src/App.tsx index 7749b74..c9f1582 100644 --- a/packages/frontend/src/App.tsx +++ b/packages/frontend/src/App.tsx @@ -15,6 +15,7 @@ import { decodeNodeLocations, getLayoutStorageKey, } from './store/utils/storageParsing' +import { AutoLayoutButton } from './view/AutoLayoutButton' import { Sidebar } from './view/Sidebar' import { Viewport } from './view/Viewport' @@ -151,7 +152,7 @@ export function App() {
-
+
+ + ) +} diff --git a/packages/frontend/src/view/ScalableView.tsx b/packages/frontend/src/view/ScalableView.tsx index d7d33c0..5454a99 100644 --- a/packages/frontend/src/view/ScalableView.tsx +++ b/packages/frontend/src/view/ScalableView.tsx @@ -35,7 +35,7 @@ export const ScalableView = forwardRef( props.transform.scale, }} > -
+
{props.children} diff --git a/packages/frontend/src/view/Sidebar.tsx b/packages/frontend/src/view/Sidebar.tsx index 032b52e..c0e1503 100644 --- a/packages/frontend/src/view/Sidebar.tsx +++ b/packages/frontend/src/view/Sidebar.tsx @@ -38,7 +38,7 @@ function SidebarForSingleNode({
Click on the "🔍" to discover
{' '}