mirror of
https://github.com/hansjone/netx.git
synced 2026-10-19 00:35:44 +08:00
Restore workbench clock, offline world map, and keep edge menus on-screen.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
99d180c501
commit
37dd43923f
6 changed files with 254 additions and 44 deletions
|
|
@ -446,7 +446,10 @@ export default function TopologyReactFlowView(props: TopologyReactFlowViewProps)
|
|||
onEdgeContextMenu={(e, edge) => {
|
||||
e.preventDefault();
|
||||
focusEdge(edge.id);
|
||||
const pos = placeCtxMenu(e.clientX, e.clientY, { w: 260, h: 280 });
|
||||
const pos = placeCtxMenu(e.clientX, e.clientY, {
|
||||
w: 280,
|
||||
h: Math.min(560, Math.max(280, window.innerHeight - 24)),
|
||||
});
|
||||
setCtxMenu({ kind: "edge", id: edge.id, ...pos });
|
||||
}}
|
||||
onSelectionContextMenu={(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue