themes-corporate-modernist/docs/adr/0001-compiled-sites-render-whole-sections.md
Alex Dunmow f386e65783 fix: render whole sections for factory-compiled sites (0.6.2)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 02:51:54 +08:00

1.9 KiB

Compiled sites render whole sections on corporate-modernist

Decided 2026-11-20 for corporate-modernist 0.6.2, from the website factory's visual review (orchestrator WO-094, ADR 0078).

Context

The website factory compiles a customer's site onto this theme and renders every page at 1280 and 390 pixels wide. The review found template defects that show on a real site as an empty region, an unreadable hero or a page wider than a phone.

Decision

  • rich-section renders one column with the text at a readable width when the section has no image. It used to keep a two-column grid with an empty media cell, so a compiled site whose about or contact section was waiting for a photo showed half the section blank. The media frame (a bordered grey box) renders only when there is an image.
  • team honours columns (2, 3 or 4) with the cm-grid classes; with no columns it keeps cm-leadership-grid.
  • The split hero section no longer carries cm-hero-split, which made the section itself a two-column grid and squeezed the hero into its left half.
  • The mobile menu toggle is hidden from 768px with a selector that outranks .cm-btn-outline, which had kept it visible beside the desktop links.
  • An image logo is sized (.cm-brand-logo 2.5rem high, .cm-footer-logo 2rem) and drops the square brand mark, which belongs to the text logo. An uploaded logo used to render at its full pixel size.
  • Paragraphs in .cm-text are spaced, so a multi-paragraph body no longer runs together.

Consequences

  • corporate-modernist 0.6.2 is published to the dev registry; the orchestrator's internal/factory/themes.yaml pins it.
  • No schema field changes. A site that sets the old values renders as before wherever it has an image.

Keywords: corporate-modernist, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review