Watch
0
0
Fork
You've already forked hyperhive
0

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.
This commit is contained in:
iris 2026-11-19 23:12:52 +01:00 • committed by mara
commit bb344f780e
2 changed files with 26 additions and 30 deletions

View file

@ -1,6 +1,8 @@
/* The cards on the swarm page: hives, then the notification router. */ /* The swarm page: its cards in one column, one gap apart as on the other pages. */
.ui-swarm-card { .ui-swarm-page {
margin-block-end: 0.5em; display: flex;
flex-direction: column;
gap: 1em;
} }
/* The warning at the top of the beta notification router card. */ /* The warning at the top of the beta notification router card. */
.ui-swarm-beta { .ui-swarm-beta {

View file

@ -13,21 +13,16 @@ import "./SwarmPage.css";
export function SwarmPage() { export function SwarmPage() {
return ( return (
<> <div class="ui-swarm-page">
<div class="ui-swarm-card">
<HivesCard /> <HivesCard />
</div>
<div class="ui-swarm-card">
<EgressCard /> <EgressCard />
</div>
<div class="ui-swarm-card">
<LazyDisclosure <LazyDisclosure
title="notification router" title="notification router"
icon="🔔" icon="🔔"
hint={ hint={
<> <>
<Badge tone="warning" value="beta" /> forge events routed to <Badge tone="warning" value="beta" /> forge events routed to agents,
agents, as flows as flows
</> </>
} }
> >
@ -39,6 +34,5 @@ export function SwarmPage() {
<NotificationRouter /> <NotificationRouter />
</LazyDisclosure> </LazyDisclosure>
</div> </div>
</>
); );
} }