fix(app): the full-screen run graph has no maximise button

This commit is contained in:
2026-10-23 19:33:47 +01:00
parent 89da394a90
commit 3099dbc5aa
3 changed files with 25 additions and 7 deletions
@@ -47,8 +47,12 @@ class RunGraphView extends StatefulWidget {
this.selectedStage,
this.now,
this.showHeader = true,
this.expandable = true,
});
/// False when this graph is already the full-screen view: no maximise.
final bool expandable;
/// The run's definition graph, or null when the server omitted it.
final JsonMap? graph;
@@ -207,13 +211,15 @@ class _RunGraphViewState extends State<RunGraphView> {
GraphViewport(
controller: _viewport,
contentSize: Size(geometry.$2.width, geometry.$2.height),
onExpand: () => _openExpanded(
nodes,
geometry.$1,
geometry.$2,
state,
statuses,
),
onExpand: !widget.expandable
? null
: () => _openExpanded(
nodes,
geometry.$1,
geometry.$2,
state,
statuses,
),
child: _runCanvas(
nodes: nodes,
layout: geometry.$1,