CodeRabbit: typing "Auto" in the count of a stretched grid set 0, which the setter clamped to 1. The count field only takes the word where 0 is Auto (a fixed-size grid); a stretched grid's count is a plain number.
Review fixes for #881 (FredApps, CodeRabbit).
- number_field: the word for Auto (the placeholder's own text in the UI's
language, or "auto") is taken only by a field that asks for it (`Empty::Auto`),
not by every field whose placeholder reads "Auto". An auto layout's gap
("Auto" is Space between) and a prototype overlay's offset ("Auto" is no
offset) keep their own meaning of 0; the fixed "自动" match is gone.
- layout: Auto width has no hidden 60 px band — the bands step by the gutter
alone, so the pitch is what the panel shows. A zero-width band snaps to one
line, not two identical edges.
- right: the width field shows "Auto" (not 0) when there is no width, and a
stretched grid shows it dim and not editable (its bands divide the frame),
with the margin and gutter still editable.
- tests: the field suite checks the word on a grid's width (0) and on an auto
layout's gap (nothing); the layout suite pins the gutter pitch, the Auto
count and a stretched grid's bands.
- docs: ROADMAP and ui-parity state the pitch and what changes for saved grids.
Columns and rows can now set their line width to Auto: a width of 0 (or
typing the word "Auto" / "自动" in the field) draws a one-pixel hairline
down the band's middle, like the square grid, instead of a filled band.
- grid_lines: a non-stretched grid with size <= 0 emits a hairline at each
band's middle rather than a zero/negative-width rect.
- canvas: a degenerate (zero-width or zero-height) grid rect is painted as a
1px line; a filled band is still painted as a rectangle.
- number_field: a field whose placeholder is "Auto" also accepts the word
"Auto"/"自动", mapping it to 0.
- right: the grid size field shows "Auto" and the align menu no longer
forces a 60px band on a zero width.
- props: document the Auto semantics of LayoutGrid::size.
- ROADMAP.md / docs/ui-parity.md: note the change.
- layout tests: regression test for the Auto hairline.
Without craft-fonts the web build has no Georgian face and can't read installed fonts, so the
language picker and System must skip Georgian there, as they already skip Japanese, Korean and
Chinese without their faces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YMTAbGNRxnMEzRvYnQGphF