From bb344f780e18c16bee637a4b58144e9f5b0ed689 Mon Sep 17 00:00:00 2001 From: iris Date: Thu, 19 Nov 2026 23:12:52 +0100 Subject: [PATCH] swarm ui: the swarm page's cards are one gap apart, as on the reports page The swarm page spaced its cards with a 0.5em bottom margin on a wrapper each; the reports, review, jobs and messages pages use a column with a 1em gap. The swarm page is now a column with the same gap, and the wrappers are gone. Measured in a browser: the cards are 16px apart on both pages, at the same left edge and width. --- .../swarm-ui/src/pages/swarm/SwarmPage.css | 8 ++-- .../swarm-ui/src/pages/swarm/SwarmPage.tsx | 48 ++++++++----------- 2 files changed, 26 insertions(+), 30 deletions(-) diff --git a/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.css b/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.css index 56ce0370f..88eca07f4 100644 --- a/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.css +++ b/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.css @@ -1,6 +1,8 @@ -/* The cards on the swarm page: hives, then the notification router. */ -.ui-swarm-card { - margin-block-end: 0.5em; +/* The swarm page: its cards in one column, one gap apart as on the other pages. */ +.ui-swarm-page { + display: flex; + flex-direction: column; + gap: 1em; } /* The warning at the top of the beta notification router card. */ .ui-swarm-beta { diff --git a/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx b/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx index f9fbdabb7..446f92061 100644 --- a/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx +++ b/frontend/packages/swarm-ui/src/pages/swarm/SwarmPage.tsx @@ -13,32 +13,26 @@ import "./SwarmPage.css"; export function SwarmPage() { return ( - <> -
- -
-
- -
-
- - forge events routed to - agents, as flows - - } - > -

- beta: the notification router is still changing. - Flows, their wording and what they match may change, and a flow you - wrote may need rewriting after an update. -

- -
-
- +
+ + + + forge events routed to agents, + as flows + + } + > +

+ beta: the notification router is still changing. + Flows, their wording and what they match may change, and a flow you + wrote may need rewriting after an update. +

+ +
+
); }