ui: stop /archives/settings wrapping itself in a second PageContainer

`ArchiveRoute` wraps its `<Routes>` in a PageContainer, and
`ArchiveSettingsPage` wrapped itself in another.  PageContainer carries
`margin-top: 1em` and `padding: 1em`, so that page sat 1em lower and 1em
further in on all four sides than /archives/domains beside it -- which is
exactly what "seems to have more margin" was.  It is a fragment now, so its
panels are blocks of the route's own stack.

Guarded by a source scan rather than a render, since a doubled margin throws
nothing: it takes each PageContainer that wraps a router, reads the
components it routes to, and fails if one of them renders a PageContainer of
its own.

The first version of that scan passed against the live bug.  It looked at
only the first `<PageContainer>` in a file, and in Archive.js that is the
offender itself, whose block holds no `<Routes>` -- so the file was skipped
before the route wrapper 400 lines below was reached.  It reads every
occurrence now, and the premise assertions count both the wrappers found and
the routes within them.

Two more top-level blocks gave up margins that were being added to the
page's gap, both headers "matching" each other's pattern: the domain filter
row (35.2px against 17.6px) and the channel filter row.

/archives/settings and /archives/domains now measure identically -- tab bar
bottom at 136.8px, first block 17.6px below it, content inset 17.6px -- as
do the statistics and settings pages of every other tab group.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Roland 2026-08-05 15:53:04 -06:00
parent fea03a0b78
commit 645ea73a00
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
3 changed files with 97 additions and 6 deletions

View file

@ -499,8 +499,9 @@ export function ChannelsPage() {
}
}, {enableOnFormTags: false});
// Header section matching DomainsPage pattern
const header = <Group justify='space-between' align='flex-end' wrap='wrap' mb='1em'>
// Header section matching DomainsPage pattern. No `mb`: this is a top-level block of the
// page, and the page's stack spaces it -- its own margin was added to that gap.
const header = <Group justify='space-between' align='flex-end' wrap='wrap'>
<SearchInput
placeholder='Name filter...'
size='large'