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:
parent
679d2ee420
commit
bb344f780e
2 changed files with 26 additions and 30 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -13,32 +13,26 @@ import "./SwarmPage.css";
|
|||
|
||||
export function SwarmPage() {
|
||||
return (
|
||||
<>
|
||||
<div class="ui-swarm-card">
|
||||
<HivesCard />
|
||||
</div>
|
||||
<div class="ui-swarm-card">
|
||||
<EgressCard />
|
||||
</div>
|
||||
<div class="ui-swarm-card">
|
||||
<LazyDisclosure
|
||||
title="notification router"
|
||||
icon="🔔"
|
||||
hint={
|
||||
<>
|
||||
<Badge tone="warning" value="beta" /> forge events routed to
|
||||
agents, as flows
|
||||
</>
|
||||
}
|
||||
>
|
||||
<p class="ui-swarm-beta" role="note">
|
||||
<strong>beta:</strong> 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.
|
||||
</p>
|
||||
<NotificationRouter />
|
||||
</LazyDisclosure>
|
||||
</div>
|
||||
</>
|
||||
<div class="ui-swarm-page">
|
||||
<HivesCard />
|
||||
<EgressCard />
|
||||
<LazyDisclosure
|
||||
title="notification router"
|
||||
icon="🔔"
|
||||
hint={
|
||||
<>
|
||||
<Badge tone="warning" value="beta" /> forge events routed to agents,
|
||||
as flows
|
||||
</>
|
||||
}
|
||||
>
|
||||
<p class="ui-swarm-beta" role="note">
|
||||
<strong>beta:</strong> 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.
|
||||
</p>
|
||||
<NotificationRouter />
|
||||
</LazyDisclosure>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue