diff --git a/frontend/src/Network.tsx b/frontend/src/Network.tsx
index f4032e3..b5fe501 100644
--- a/frontend/src/Network.tsx
+++ b/frontend/src/Network.tsx
@@ -12,7 +12,7 @@ import {
import { customTheme } from "./NetworkTheme";
import { useSession } from "./Session";
import { useNavigate } from "react-router";
-import { ChevronDown, ChevronUp, Settings2 } from "lucide-react";
+import { ChevronDown, ChevronUp, Info, Settings2 } from "lucide-react";
interface NetworkData {
nodes: GraphNode[];
@@ -50,6 +50,7 @@ export const GraphComponent = () => {
const [showDislikes, setShowDislikes] = useState(false);
const [popularity, setPopularity] = useState(false);
const [mutuality, setMutuality] = useState(false);
+ const [showHelp, setShowHelp] = useState(false);
const { user, teams } = useSession();
const navigate = useNavigate();
useEffect(() => {
@@ -212,38 +213,6 @@ export const GraphComponent = () => {
onNodePointerOut={onNodePointerOut}
onNodePointerOver={onNodePointerOver}
/>
-
-
-
>
);
}
@@ -333,25 +302,68 @@ export const GraphComponent = () => {
checked={popularity}
onClick={handlePopularity}
/>
-
- popularity*
-
+ popularity
)}
+ {showControls && (
+
+ )}
- {popularity && (
+
-
- *popularity meassured by rank-weighted in-degree
-
+ onClick={() => setShowHelp(false)}
+ className="modal-background"
+ >
+
+
+
+
Help
+
+
+
+
scroll to zoom
+
+ hover: show inbound links
+
+
+ click: show outward links
+
+
+
+ multi-selection is possible with
+
+ Ctrl or Shift
+
+
drag to pan/rotate
+
+
popularity is meassured by rank-weighted in-degree
+
+
- )}
+
+
{content}
);
diff --git a/frontend/src/main.css b/frontend/src/main.css
index f497c82..72775a6 100644
--- a/frontend/src/main.css
+++ b/frontend/src/main.css
@@ -16,7 +16,7 @@
}
.network-controls {
- z-index: 9;
+ z-index: 2;
position: absolute;
margin: 1rem;
}