fix: render whole sections for factory-compiled sites (0.4.2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alex Dunmow 2026-11-20 02:51:54 +08:00
parent 3e23e2b170
commit 298d988e75
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,18 @@
# Compiled sites render whole sections on scifi-clean
Decided 2026-11-20 for scifi-clean 0.4.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
- team honours `columns` (2, 3 or 4) in its grid layout, so two people no longer sit in a four-column row with two empty cells. With no `columns` the fixed responsive ramp is unchanged.
## Consequences
- scifi-clean 0.4.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: scifi-clean, rich-section, media, mediaPosition, empty column, hero, overlayColor, scrim, contrast, navbar, backdrop-blur, bn-navbar-drawer, team columns, WO-094, website factory, render review

View File

@ -2,7 +2,7 @@
name = "scifi-clean" name = "scifi-clean"
display_name = "Sci-Fi Clean" display_name = "Sci-Fi Clean"
scope = "@themes" scope = "@themes"
version = "0.4.1" version = "0.4.2"
description = "Minimalist futurist theme for aerospace, robotics, and R&D — off-white surfaces, technical blue, signal-orange accents, mono numerals." description = "Minimalist futurist theme for aerospace, robotics, and R&D — off-white surfaces, technical blue, signal-orange accents, mono numerals."
kind = "theme" kind = "theme"
categories = ["templates"] categories = ["templates"]

View File

@ -2,7 +2,7 @@
<section class="sc-section {{ class }}"><div class="sc-content-well"> <section class="sc-section {{ class }}"><div class="sc-content-well">
{% if heading %}<h2 class="sc-heading" style="font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem 0;"><span class="sc-heading-h2-accent">{{ heading }}</span></h2>{% endif %} {% if heading %}<h2 class="sc-heading" style="font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem 0;"><span class="sc-heading-h2-accent">{{ heading }}</span></h2>{% endif %}
{% if intro %}<p class="sc-lede" style="max-width: 60ch; margin: 0 0 2.5rem 0; color: hsl(var(--muted-foreground));">{{ intro }}</p>{% endif %} {% if intro %}<p class="sc-lede" style="max-width: 60ch; margin: 0 0 2.5rem 0; color: hsl(var(--muted-foreground));">{{ intro }}</p>{% endif %}
{% if members %}<div class="{% if layout == "list" %}sc-stack{% elif layout == "single" %}sc-measure{% else %}grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4{% endif %}">{% for member in members %}<div class="sc-feature"> {% if members %}<div class="{% if layout == "list" %}sc-stack{% elif layout == "single" %}sc-measure{% elif columns == 2 %}grid grid-cols-1 gap-6 sm:grid-cols-2{% elif columns == 3 %}grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3{% elif columns == 4 %}grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-4{% else %}grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4{% endif %}">{% for member in members %}<div class="sc-feature">
{% if member.photo %}<div class="sc-media-frame" style="aspect-ratio: 1 / 1; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; margin-bottom: 1rem;">{% img member.photo alt=member.name class="sc-team-photo" %}</div>{% endif %} {% if member.photo %}<div class="sc-media-frame" style="aspect-ratio: 1 / 1; background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); overflow: hidden; margin-bottom: 1rem;">{% img member.photo alt=member.name class="sc-team-photo" %}</div>{% endif %}
{% if member.name %}<h3 class="sc-feature-title" style="margin: 0;">{{ member.name }}</h3>{% endif %} {% if member.name %}<h3 class="sc-feature-title" style="margin: 0;">{{ member.name }}</h3>{% endif %}
{% if member.role %}<div class="sc-stat-label" style="margin-top: 0.25rem;">{{ member.role }}</div>{% endif %} {% if member.role %}<div class="sc-stat-label" style="margin-top: 0.25rem;">{{ member.role }}</div>{% endif %}