Skip to content

fix(templates): page templates fit a 320 px phone without sideways scroll or cut text - #12444

Merged
josephfarina merged 3 commits into
mainfrom
josephfarina/inner-scroll-320
Nov 18, 2026
Merged

josephfarina merged 3 commits into
mainfrom
josephfarina/inner-scroll-320

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

User impact

On a 320 px phone, the main content area of ten page templates scrolled sideways inside the page, because a card grid was wider than the screen. Nine now fit, and the tenth scrolls less. The inline form wizard's checkbox descriptions were cut to one line; they now wrap.

Template Content width at 320 px, before After
Dashboard, library, product detail, alert-rail dashboard, comparison dashboard 344 px fits
Composition dashboard 344 px 328 px (see Scope)
Settings 336 px fits
Product gallery 324 px fits
Course detail 368 px fits
Side gallery 384 px fits
Inline form wizard fits; four checkbox descriptions cut at 320 px (three at 390 px) every description whole

Screens up to 1920 px wide look the same as before. Above about 2,380 px, the library's six category cards fill their row instead of leaving an empty column.

Problem and solution fit

These grids set only a minimum column width (columns={{minWidth}}). Grid's own documentation says that a minimum width alone overflows a screen narrower than it and should be paired with max. Each grid now has a max taken from its layout: the number of items it holds, or the column count it already shows at a wide layout. A column can then shrink below its minimum on a narrow screen instead of overflowing. Grids with repeat: 'fit' keep it.

The inline form wizard's trigger and job checkboxes passed their label and description as strings, which truncate to one line. They now pass them as nodes, which wrap.

CSS-only, with no media-query defaults. No component changes.

Evidence

  • Measured with script on, at 320 px with touch, on the page's main region: every template listed above fits except the composition dashboard (see Scope). The page itself never scrolls sideways, before or after.
  • At 1280 and 1920 px every template is pixel-identical, or has identical grid geometry where its images make screenshots differ run to run. Grid geometry is also identical at 2560 px, except the library: its category grid goes from seven 345 px tracks with six cards to six 405 px tracks, still one row. With repeat: 'fit', the capped grids drop only empty tracks, so the visible columns keep their widths.
  • At 390 px, only the side gallery (its column ran into the page padding) and the inline form wizard (its checkbox descriptions now wrap) change.
  • astryx build on a build replay set: no start, alternative or block suggestion changes.

Scope

Components: none (page templates only)

  • The composition dashboard still scrolls 8 px at 320 px. A card spans three columns of a grid that has one track at that width, and Grid allows a span to add implicit columns. That is left as it is.

  • One defect is restored.

  • Separable contradictory or unsettled tagalongs were removed or split.

  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.

  • Public text and artifacts contain no internal Meta context.

Testing

  • prettier and eslint on the changed templates.
  • Before and after screenshots and geometry at 320, 390, 1280 and 1920 px.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 18, 2026 5:56am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 18, 2026, 6:23 AM UTC

@github-actions github-actions Bot added the needs:design-review Affects visuals — Design should review label Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 6d714ca

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 5.37 MB packed (+150 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes. The 320 px fix measures right for ten templates, but three statements in the description and the release note do not match what the change does, and two files fail the repository's formatting check.

  • The library category grid (max: 5, six cards) and the portfolio market grid (max: 5, eight cards) drop from seven columns to five at 2,560 px, so "Wide screens look the same as before" does not hold above about 2,048 px; cap each grid at the cards it holds (6 and 8), or say in the description and the changeset that these two rows settle at five columns.
  • The changeset tells consumers that eleven templates fit a 320 px phone, but the composition dashboard still measures 328 px there (as Scope says) and the inline form wizard already measured 320 px before this change, so the note should say ten templates and describe the wizard change as wrapped checkbox text.
  • prettier --check fails on packages/cli/assets/templates/pages/dashboard-composition/page.tsx and packages/cli/assets/templates/pages/side-gallery/page.tsx, where the new max pushes the <Grid> opening tag past the print width; the Lint workflow runs that same check over changed files once the pull request leaves draft.
  • The "477 px" row for the inline form wizard and "at 390 px ... both scrolled sideways at that width too" do not reproduce: measured on this base, the wizard's content area is 320 px at both widths and neither page scrolls sideways at 390 px.

Everything else holds up: the ten capped templates measure 320 px at 320 px with touch, and all eleven are pixel-identical at 1,280 and 1,920 px.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim, eleven templates fit a 320 px phone without sideways scrolling: false; ten do, the composition dashboard measures 328 px and the inline form wizard measured 320 px before the change.
  • Claim, the before/after widths of the content areas at 320 px: verified for the ten grid templates (344, 336, 324, 368 and 384 px, each 320 px after); false for the inline form wizard's 477 px.
  • Claim, every responsive grid now pairs its minimum column width with a cap: verified at all 16 grid callsites.
  • Claim, each cap is the number of items the grid holds or the columns it already shows at the widest layout: false for the library category grid (six cards, cap 5) and the portfolio market grid (eight cards, cap 5).
  • Claim, wide screens look the same as before: verified at 1,280 and 1,920 px (pixel-identical frames); false from about 2,048 px for those two grids.
  • Claim, grids with fit repeat keep it: verified.
  • Claim, capped fit grids drop only empty tracks so visible columns keep their widths: verified at 1,280 and 1,920 px; false at 2,560 px for the market grid.
  • Claim, at 390 px only the side gallery and the inline form wizard change and both scrolled sideways there: the two do change; neither scrolled sideways on the base.
  • Claim, the composition dashboard still scrolls 8 px from a span inside a one-track grid: verified (328 px, and that grid is unchanged here).
  • Claim, prettier and eslint pass on the changed templates: eslint passes, prettier fails on two files.
  • Claim, no component changes and no new media-query defaults: verified.
  • Claim, no new public API, visual representation, default or interaction model under the bug-fix label: false for the wide-screen column count and the wrapped wizard rows at 390 px and below.
  • Claim, public text and artifacts carry no internal context: verified over the title, body, branch, commit message and every added line.
  • Claim, an astryx build replay set shows no suggestion changes: not checked, no replay set available to this review.
  • Release note: finding, it says eleven templates fit.
  • Course detail page: clear, both caps match the cards each grid holds.
  • Alert-rail dashboard page: clear, caps match four tiles and two charts; non-blocking note on its 1,592 lines.
  • Comparison dashboard page: clear, caps match four tiles and three breakdown cards.
  • Composition dashboard page: finding, the market grid caps eight cards at five, and the file fails the formatting check.
  • Analytics dashboard page: clear, all four caps match their card counts.
  • Inline form wizard page: finding, its before measurement does not reproduce; the node label and description are within the checkbox row contract.
  • Library page: finding, each category holds six cards and the grid caps at five.
  • Product detail page: clear, the cap matches the gallery and info pair.
  • Product gallery page: clear, the cap matches the three columns its content width allows.
  • Settings page: clear, all three caps match the three-column form layout.
  • Side gallery page: finding, the file fails the formatting check; the cap itself matches its two panes.

Automated review (maintainer link)

Comment thread .changeset/inner-scroll-320.md Resolved
@josephfarina josephfarina changed the title fix(templates): eleven page templates fit a 320 px phone without sideways scroll fix(templates): page templates fit a 320 px phone without sideways scroll or cut text Nov 17, 2026
@josephfarina
josephfarina force-pushed the josephfarina/inner-scroll-320 branch from 16d1eb6 to 31e673d Compare November 17, 2026 22:33

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes. The 320 px fix measures right in nine templates, and the earlier formatting and release-note count issues are fixed, but two statements in the description and the release note still do not match what the change does.

  • The library category grid (max: 5, six cards per category) and the portfolio market grid (max: 5, eight cards) lose columns from about 2,048 px: at 2,560 px seven 345 px tracks become five 490 px ones and one library card sits alone on a second row, so "Wide screens look the same as before" is false; use max: 8 on the market grid, and for the library either keep the cap and describe its wide-screen change or use max: 6, which matches today's layout up to about 2,380 px.
  • The description says the side gallery and the inline wizard both scrolled sideways at 390 px, but on the base both main regions measure exactly 390 px there and only the side gallery's column runs into the page padding, so restate or drop that clause.
Claims and files checked

Review mode: full; reason: history

  • Claim, nine templates fit a 320 px phone and a tenth scrolls less: verified; nine measure 320 px and the composition dashboard goes from 344 px to 328 px.
  • Claim, the grids pair the minimum column width with a cap so a narrow column shrinks to fit: verified at all 20 grid callsites.
  • Claim, the inline wizard's checkbox descriptions now wrap instead of being cut to one line: verified; four are cut at 320 px and three at 390 px on the base, none on the head.
  • Claim, wide screens look the same as before: false from about 2,048 px for the library and market grids.
  • Claim, the before and after content widths in the table: verified for all eleven templates.
  • Claim, these grids set only a minimum width, which Grid's documentation says overflows a narrow screen: verified.
  • Claim, each cap is the number of items the grid holds or the column count it shows at its widest layout: false for the library grid (six cards, cap five) and the market grid (eight cards, cap five).
  • Claim, grids with fit repeat keep it, and capped fit grids drop only empty tracks so visible columns keep their widths: verified at 1,280 and 1,920 px; false at 2,560 px for the market grid.
  • Claim, CSS-only, with no media-query defaults and no component changes: verified.
  • Claim, at 320 px with touch every listed template fits except the composition dashboard, and the page itself never scrolls sideways: verified.
  • Claim, every template keeps its layout at 1,280 and 1,920 px: verified; the visible grid tracks are identical in all eleven.
  • Claim, at 390 px only the side gallery and the inline wizard change: verified; that both scrolled sideways there: false.
  • Claim, the composition dashboard still scrolls 8 px because a span adds implicit columns: verified.
  • Claim, no new public API, visual representation, default or interaction model under the bug-fix label: false for the wide-screen column change.
  • Claim, public text carries no internal context: verified.
  • Claim, prettier and eslint pass on the changed templates: verified.
  • Claim, a build replay set shows no suggestion changes: not checked; no replay set was available.
  • Release note: finding, it says wide screens do not change.
  • Course detail page: clear, the caps match four reviews and the two-column layout.
  • Alert-rail dashboard page: clear for this change, the caps match four tiles and two charts; non-blocking notes on the template's existing grade and its length.
  • Comparison dashboard page: clear, the caps match the four-column tile row and three breakdown cards.
  • Composition dashboard page: finding, the market grid caps eight cards at five.
  • Analytics dashboard page: clear, all four caps match their card counts.
  • Inline form wizard page: clear, node labels and descriptions are within the checkbox row contract.
  • Library page: finding, each category holds six cards and the grid caps at five.
  • Product detail page: clear, the cap matches the gallery and info pair.
  • Product gallery page: clear, the cap matches the three columns its content width allows.
  • Settings page: clear, all three caps match the three-column form layout.
  • Side gallery page: clear, the cap matches its two panes.

Automated review (maintainer link)

Comment thread .changeset/inner-scroll-320.md Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Requesting changes. The 320 px fix measures right, and the wide-screen caps and the 390 px wording from the last review are fixed; one sentence in the description still does not match the base.

  • The description's "Problem and solution fit" section says the wizard's string labels and descriptions "kept the step wide", but on the base the step fits at 320 and 390 px and the strings are clipped to one line rather than widening it (the description's own table says the wizard fits), so end that sentence at "which truncate to one line" (earlier reviews did not raise this clause).

Non-blocking: the alert-rail dashboard template, unchanged here, still grades C under the template rubric for its custom CSS and raw layout markup, and runs to 1,592 lines.

Claims and files checked

Review mode: incremental; reason: none

  • Release note, nine templates fit a 320 px phone and a tenth scrolls less: verified; nine measure 320 px and the composition dashboard goes from 344 px to 328 px.
  • Release note, the grids pair the minimum column width with a cap so the column shrinks to a narrow screen instead of overflowing: verified at all 20 grid callsites.
  • Release note, the inline wizard's checkbox descriptions wrap instead of being cut to one line: verified; four are clipped at 320 px and three at 390 px on the base, none on the head.
  • Release note, screens up to 1,920 px look the same and above about 2,380 px the library's six cards fill their row: verified; tracks are identical at 1,920 and 2,300 px, and at 2,400 px seven 322 px tracks become six 379 px ones.
  • Description, ten templates scrolled sideways at 320 px because a grid was wider than the screen, nine now fit and the tenth scrolls less: verified.
  • Description, the before and after content widths in the table: verified for all eleven templates.
  • Description, these grids set only a minimum width, which Grid's documentation says overflows a narrower screen: verified.
  • Description, each cap is the number of items the grid holds or the columns it already shows at a wide layout: verified at all 20 callsites, including six library cards and eight market cards.
  • Description, a column can now shrink below its minimum on a narrow screen, and grids with fit repeat keep it: verified.
  • Description, the wizard's string labels and descriptions truncate to one line: verified; that they kept the step wide: false.
  • Description, CSS-only, with no media-query defaults and no component changes: verified.
  • Description, at 320 px with touch every listed template fits except the composition dashboard, and the page itself never scrolls sideways: verified.
  • Description, every template keeps its layout at 1,280 and 1,920 px: verified.
  • Description, at 2,560 px grid geometry is identical except the library, whose seven 345 px tracks become six 405 px ones in one row: verified.
  • Description, capped fit grids drop only empty tracks so visible columns keep their widths: verified; the market row is pixel-identical at 2,560 px.
  • Description, at 390 px only the side gallery (its column ran into the padding) and the wizard (its descriptions wrap) change: verified.
  • Description, the composition dashboard still scrolls 8 px because a span adds implicit columns: verified.
  • Description, no new public API, visual representation, default or interaction model is hidden under the bug-fix label: verified; the library's wide-screen change is stated.
  • Description, public text carries no internal context: verified.
  • Description, prettier and eslint pass on the changed templates: verified.
  • Description, a build replay set shows no suggestion changes: not replayed; consistent with the code, since the change adds or removes no component a template composes.
  • Release note file: clear.
  • Course detail page: clear, the caps match four reviews and the two-column layout.
  • Alert-rail dashboard page: clear for this change; non-blocking notes on the template's existing grade and its length.
  • Comparison dashboard page: clear, the caps match the four-tile row and three breakdown cards.
  • Composition dashboard page: clear, the caps match two metric pairs and eight market cards.
  • Analytics dashboard page: clear, all four caps match their card counts.
  • Inline form wizard page: clear for the code; the description's claim about it is false.
  • Library page: clear, the cap matches six cards per category.
  • Product detail page: clear, the cap matches the gallery and info pair.
  • Product gallery page: clear, the cap matches the three columns its content width allows.
  • Settings page: clear, all three caps match the three-column form layout.
  • Side gallery page: clear, the cap matches its two panes.

Automated review (maintainer link)

@josephfarina
josephfarina marked this pull request as ready for review November 18, 2026 04:27
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 6d714ca

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved pending CI: CI has not run on this head yet. The CI run here was refused for lack of capacity, so its required jobs need a re-run before merge; lint and the CLI smoke test passed.

The 320 px fix measures right in both trees, and the description's wizard sentence now matches the base, which was the last open point.

Non-blocking: the alert-rail dashboard template, unchanged here, still grades C under the template rubric for its custom CSS and raw layout markup, and runs to 1,592 lines.

Claims and files checked

Review mode: incremental; reason: none

  • Release note, nine templates fit a 320 px phone and a tenth scrolls less: verified; nine measure 320 px and the composition dashboard goes from 344 px to 328 px.
  • Release note, the grids pair the minimum column width with a cap so a column shrinks to a narrow screen instead of overflowing: verified at all 20 grid callsites.
  • Release note, the inline wizard's checkbox descriptions wrap instead of being cut to one line: verified; on the base the first step cuts its three trigger descriptions (and one label at 320 px) and the jobs step its four job descriptions, none on the head.
  • Release note, apart from these fixes screens up to 1,920 px look the same, and above about 2,380 px the library's six cards fill their row: verified; grid tracks match at 1,280, 1,920 and 2,300 px, and at 2,400 px seven 322 px tracks become six 379 px ones.
  • Description, ten templates scrolled sideways at 320 px because a card grid was wider than the screen; nine now fit and the tenth scrolls less: verified.
  • Description, the wizard's checkbox descriptions were cut to one line and now wrap: verified.
  • Description, the before and after content widths in the table: verified for all eleven templates.
  • Description, the table's wizard row, which fits with four checkbox descriptions cut at 320 px and three at 390 px: verified that it fits and that its first step cuts four and three checkbox texts; at 320 px one of the four is a label, and the jobs step cuts four more descriptions at both widths, all whole on the head.
  • Description, these grids set only a minimum width, which Grid's documentation says overflows a narrower screen and should be paired with a cap: verified.
  • Description, each cap is the number of items the grid holds or the column count it already shows at a wide layout: verified at all 20 callsites.
  • Description, a column can now shrink below its minimum on a narrow screen, and grids with fit repeat keep it: verified.
  • Description, the wizard's trigger and job checkboxes passed strings, which truncate to one line, and now pass nodes, which wrap: verified.
  • Description, CSS-only, with no media-query defaults and no component changes: verified.
  • Description, at 320 px with touch every listed template fits except the composition dashboard, and the page itself never scrolls sideways: verified.
  • Description, at 1,280 and 1,920 px every template is pixel-identical or keeps its grid geometry where images differ: verified.
  • Description, at 2,560 px grid geometry is identical except the library, whose seven 345 px tracks become six 405 px ones in one row: verified.
  • Description, capped fit grids drop only empty tracks, so visible columns keep their widths: verified.
  • Description, at 390 px only the side gallery and the wizard change: verified; the side gallery's column goes from 360 px to 342 px.
  • Description, a build replay set shows no suggestion changes: not replayed; consistent with the code, since no template doc or composed component changes.
  • Description, the composition dashboard still scrolls 8 px because a three-column span adds implicit columns in a one-track grid: verified.
  • Description, one defect is restored, with no separable tagalong: verified.
  • Description, no new public API, visual representation, default or interaction model is hidden under the bug-fix label: verified; the library's wide-screen change is stated.
  • Description, public text carries no internal context: verified.
  • Description, prettier and eslint pass on the changed templates: verified.
  • Description, before and after screenshots and geometry at 320, 390, 1,280 and 1,920 px: consistent with this review's own probes at those widths.
  • Release note file: clear.
  • Course detail page: clear, the caps match four reviews and the two-column layout.
  • Alert-rail dashboard page: clear for this change; non-blocking notes on the template's existing grade and its length.
  • Comparison dashboard page: clear, the caps match the four-tile row and three breakdown cards.
  • Composition dashboard page: clear, the caps match two metric pairs and eight market cards.
  • Analytics dashboard page: clear, all four caps match their card counts.
  • Inline form wizard page: clear, both checkbox lists pass nodes.
  • Library page: clear, the cap matches six cards per category.
  • Product detail page: clear, the cap matches the gallery and info pair.
  • Product gallery page: clear, the cap matches the three columns its content width allows.
  • Settings page: clear, all three caps match the three-track form layout.
  • Side gallery page: clear, the cap matches its two panes.

Automated review (maintainer link)

@josephfarina josephfarina reopened this Nov 18, 2026
@josephfarina
josephfarina merged commit d06d234 into main Nov 18, 2026
134 of 140 checks passed
@github-actions
github-actions Bot deleted the josephfarina/inner-scroll-320 branch November 19, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 6d714cad Deployed Nov 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant