Skip to content

PR-SETTINGS-SHELL-OWNS-LAYOUT-0: shell owns page chrome; bordered rows - #137

Merged
jackwener merged 1 commit into
mainfrom
shell-owns-layout
Jun 23, 2026
Merged

PR-SETTINGS-SHELL-OWNS-LAYOUT-0: shell owns page chrome; bordered rows#137
jackwener merged 1 commit into
mainfrom
shell-owns-layout

Conversation

@jackwener

Copy link
Copy Markdown
Member

Summary

WAWQAQ msg `70c224f4` raised the methodology question — page-by-page hand-fixing was the wrong shape. Msg `eafc18a1` corrected my earlier "reference uses flat rows" claim with a screenshot showing reference DOES use 1px-bordered cards.

Two structural changes:

  1. Shell owns layout — every sub-page was baking its own outer wrapper (`settingsStructuredPage`, `settingsAboutPage`, `settingsPermissionPage`, `settingsHealthPage`) that re-managed `max-width` + page padding. Moved the page-frame chrome up a level to `.settingsPageContentInner` (the single OverlayScrollArea inner div every page renders through). All 12 pages now inherit `max-w-3xl` + `40/24/64` padding from ONE place. Sub-pages only manage their own row stack.

  2. Reference correction — PR-SETTINGS-PAGE-BODY-0 stripped per-row borders calling them "flat". WAWQAQ's screenshot showed I was wrong — reference rows are 1px bordered cards with ~8px radius. Reinstated chrome on `.settingsFormRow` and `.settingsRow` — 1px border, 8px radius, light bg, 8px gap. Hover state amplifies the border tone.

The PermissionCenter / HealthCenter / ProvidersPanel / WebSearch / Voice / Models pages — which I had no visual smoke fixture for and couldn't have hand-fixed — now automatically inherit the right chrome too. That's the structural answer to "systematic methodology, not per-page polish."

Test plan

  • `npm test` in `apps/desktop`: 1465 passed
  • Visual smoke: 通用 / 关于 / 数据 / 外观 / 记忆与回顾 / 机器人对话 — all 12-row cards now match reference.

… to bordered cards

WAWQAQ msg 70c224f4 + eafc18a1 raised two corrections:

1. **Systematic**: per-page hand-fixing was the wrong approach. Every
   sub-page baked its own outer wrapper that managed max-width + page
   padding (settingsStructuredPage, settingsAboutPage, etc.) — so a
   "fix all 12 pages" turned into 12 separate edits. Move the
   page-frame chrome UP a level to `.settingsPageContentInner` (the
   OverlayScrollArea inner div every page renders through). All 12
   pages now inherit max-w-3xl + 40/24/64 padding from one place;
   sub-pages only manage their internal block stack.

2. **Reference correction**: in PR-SETTINGS-PAGE-BODY-0 I'd stripped
   the per-row borders, claiming reference used flat rows. WAWQAQ
   showed a screenshot proving reference DOES use bordered cards
   (1px subtle border + ~8px radius). Reinstated per-row chrome on
   `.settingsFormRow` and `.settingsRow` — 1px border, 8px radius,
   light bg, 8px gap between rows. Hover state amplifies the border
   tone (no bg flash).

Concrete CSS:

- `.settingsPageContentInner` (the shell): `max-width: 768px; margin:
  0 auto; padding: 40px 24px 64px`. This is the single owner now.
- `.settingsStructuredPage`: just `display: grid; gap: 8px` —
  passthrough.
- `.settingsAboutPage`: just `display: grid; gap: 16px` — same.
- `.settingsFormRow` and `.settingsRow`: 1px border, 8px radius,
  background fill, border-color hover state.

Because the shell owns layout, the PermissionCenter / HealthCenter /
ProvidersPanel / WebSearch / Voice / Models pages — which I had NO
visual smoke fixture for — also now get the right chrome
automatically without per-page CSS. That's the structural answer to
"systematic methodology, not page-by-page polish."

1465 / 1465 tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant