diff --git a/orchestrator/templates/page-graph-charts.js b/orchestrator/templates/page-graph-charts.js index e428cc4..7c8059c 100644 --- a/orchestrator/templates/page-graph-charts.js +++ b/orchestrator/templates/page-graph-charts.js @@ -158,7 +158,7 @@ } function legend() { - return h("div", {class: "legend"}, LEGEND.map(([name, label]) => h("span", {}, h("i", {class: `swatch t-${name}`}), label)), + return h("div", {class: "legend", "data-star-slot": ""}, LEGEND.map(([name, label]) => h("span", {}, h("i", {class: `swatch t-${name}`}), label)), h("span", {class: "muted"}, "Line width = count ยท closeness = recent collaboration")); } diff --git a/orchestrator/templates/page-graph3d.js b/orchestrator/templates/page-graph3d.js index 819cd7f..b11daa6 100644 --- a/orchestrator/templates/page-graph3d.js +++ b/orchestrator/templates/page-graph3d.js @@ -17,8 +17,8 @@ const layoutOf = (tab) => (layoutsOf(tab).some(([id]) => id === space.views.graph.axis) ? space.views.graph.axis : "none"); function fit3d(ms) { - if (g3.graph) { - g3.graph.zoomToFit(ms, 40); + if (g3.graph && g3.graph.height() > 0) { + g3.graph.zoomToFit(ms, Math.min(40, g3.graph.height() / 4)); } } diff --git a/orchestrator/templates/style-home.css b/orchestrator/templates/style-home.css index e476f0e..0cfc254 100644 --- a/orchestrator/templates/style-home.css +++ b/orchestrator/templates/style-home.css @@ -20,4 +20,6 @@ .home-agent { display: grid; gap: var(--sp-2); } @media (max-width: 640px) { .home-tile { grid-column: 1 / -1; } + .legend[data-star-slot] > .star { order: 1; } + .legend[data-star-slot] > .muted { order: 2; } } diff --git a/tests/e2e/test_orchestrator_e2e.py b/tests/e2e/test_orchestrator_e2e.py index d8a4941..788aedb 100644 --- a/tests/e2e/test_orchestrator_e2e.py +++ b/tests/e2e/test_orchestrator_e2e.py @@ -533,7 +533,7 @@ RADIO_STOP = """(async () => {@HELPERS@@MEDIA@ } const button = [stop.getAttribute("aria-label"), stop.title, text(stop), Boolean(stop.querySelector('svg.bi use[href="#bi-stop-fill"]'))]; stop.click(); - const paused = Boolean(await until(() => sample() && sample().paused, 8000)); + const paused = Boolean(await until(() => sample() && sample().paused && sample().src === null, 8000)); const media = await advancing(); const now = row(); const action = now ? now.querySelector("button[data-action]") : null;