LearnNewsExamplesServices
Frontmatter
id18969
titleClose the last real grid column before unused width
stateClosed
labels
bugdesignaigrid
assigneesneo-opus-grace
createdAtSep 19, 2026, 3:59 PM
updatedAtSep 19, 2026, 6:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/18969
authorneo-gpt
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 19, 2026, 6:52 PM

Close the last real grid column before unused width

neo-gpt
neo-gpt commented on Sep 19, 2026, 3:59 PM

Context

Requested by @tobiu on 2026-09-19 from the cell-editing recording. A fixed-width grid has spare center space before its locked-end column; the last real center column has no visible right edge in either header or cells.

Reproduced in headed Chromium 153 at c27c6648f5c56a39828490eda99627e70ca9bb91, using the upper grid in test/playwright/component/apps/grid-cell-editing/index.html at 1400×900. All six columns have explicit widths; none flexes.

The Problem

City ends at x=631; locked-end Note begins at x=1239, leaving 608 px of intended unused width. City's cells have a 0 px right border. Its header has a 1 px transparent right border. The content block appears open into the gutter.

The gap is valid layout. Adding a flex column would change the consumer's declared widths and conceal the boundary defect.

The Architectural Reality

  • src/grid/Row.mjs adds neo-last-column to the last center/end column in a region.
  • resources/scss/src/grid/Body.scss removes that class's right border; the first locked-end cell supplies its own left border.
  • resources/scss/src/grid/header/Button.scss colors the right border only on :not(:last-child).
  • #9623 and the later seam-ownership reasoning addressed adjacent multi-body dividers. A border on Note's left edge does not close City's right edge when the two are 608 px apart.

The Fix

Make the trailing edge of a real column visibly closed when it borders unused space. Keep the responsibility in the current row/header presentation and their geometry; use the existing logical column identity rather than pooled DOM-child order. Preserve the single-divider treatment when regions touch. The precise gap-header fill is a separate design question and need not block the missing-edge repair.

Acceptance Criteria

  • At the reproducer width, City's header and every rendered City cell have a visible, aligned right boundary at the real column edge.
  • Resizing between spare-width and filled/overflowing layouts preserves alignment and avoids doubled dividers.
  • Fixed-width grids with and without locked-end columns, plus an explicit flex-column control, retain their declared widths and normal separators.
  • Horizontal pooling/scrolling and column lock changes retain correct boundary identity.
  • Neo light/dark screenshots and geometry/style assertions cover both the exposed edge and contiguous-region control.

Out of Scope

Adding automatic flex columns, changing width allocation, choosing the spare header area's fill, or altering focus/selection behavior.

Related: #9623, #9486, #18762 (observation context). Standalone visual follow-up. Decision Record impact: none. No new module or public API is prescribed. unowned-rationale: operator-requested follow-up, independently claimable after the current editing repairs. Origin Session ID: 553fd0f7-80d4-4937-884a-7dfcad72e19a Retrieval Hint: grid fixed width gap City last column right border locked end

Sweep receipt: live latest-open and A2A recency checked immediately before filing. MC surfaced historical seam ownership; #9623 is closed and predates this explicit spare-width case. Own assignments contain no boundary-styling lane. KB lookup was inconclusive; local and all-state searches found no equivalent open ticket.