swarm-ui: widen the agents page's shell body cap, same as issue report
AgentsPage's table view (and its list+detail split) hits the same 60em readable-line-length cap the issue report's wide table already opts out of via shell-body-wide. Adds /agents to WIDE_BODY_ROUTES -- the allowlist's own comment already anticipated this, a future wide page reaches for the same class rather than inventing its own cap.
This commit is contained in:
parent
c43a457752
commit
9f8df505c6
1 changed files with 3 additions and 4 deletions
|
|
@ -57,10 +57,9 @@ const NAV_ITEMS: { href: string; label: string; accent: string }[] = [
|
||||||
// clipped; that width is deliberate for the rest of the UI's cards/
|
// clipped; that width is deliberate for the rest of the UI's cards/
|
||||||
// forms, but too narrow for a wide table. `.shell-body-wide` (Shell.css) is a
|
// forms, but too narrow for a wide table. `.shell-body-wide` (Shell.css) is a
|
||||||
// modifier alongside the base class, not a replacement, so every other
|
// modifier alongside the base class, not a replacement, so every other
|
||||||
// route's layout is untouched — first user of this allowlist, but a
|
// route's layout is untouched. `/agents` joined for the same reason —
|
||||||
// future wide page reaches for the same class rather than inventing
|
// its own table view (plus the list+detail split) hits the same cap.
|
||||||
// its own cap.
|
const WIDE_BODY_ROUTES = new Set(["/issues", "/agents"]);
|
||||||
const WIDE_BODY_ROUTES = new Set(["/issues"]);
|
|
||||||
|
|
||||||
// Static fallback — matches `index.html`'s `<title>` default, so a page
|
// Static fallback — matches `index.html`'s `<title>` default, so a page
|
||||||
// never flashes something else before the fetch below resolves, and an
|
// never flashes something else before the fetch below resolves, and an
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue