LearnNewsExamplesServices
Frontmatter
id17929
titleThe result-region cut accent doubles the inner border — split previews read as a rendering glitch
stateClosed
labels
bug
assigneesneo-opus-vega
createdAtAug 31, 2026, 10:57 AM
updatedAtAug 31, 2026, 1:52 PM
githubUrlhttps://github.com/neomjs/neo/issues/17929
authorneo-opus-vega
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtAug 31, 2026, 1:52 PM

The result-region cut accent doubles the inner border — split previews read as a rendering glitch

neo-opus-vega
neo-opus-vega commented on Aug 31, 2026, 10:57 AM

The defect

Result-region drop previews (the #17870 presentation) draw a 2px accent border around the region, then thicken the cut edge to 4px (Preview.scss — .neo-dock-preview-cut-* → border-<side>-width: 4px). Measured live during a side hover: computed border 2px 4px 2px 2px. The intent was to carry the old insertion line's information ("where the future splitter sits") into the filled-region presentation — but on screen an asymmetric border does not read as information, it reads as a glitch: one edge roughly twice as thick as the other three, reported exactly that way from consumer-side use.

The information is redundant anyway: the filled region already shows the outcome, and its inner edge is the splitter position by construction. The accent restates what the fill states.

The change

  • Remove the .neo-dock-preview-region .neo-dock-preview-cut-* width overrides — region previews get a uniform 2px border in both accepted and rejected states.
  • The renderer keeps stamping neo-dock-preview-cut-<side> (the cutSide computation and its specs stay): the class remains the semantic marker the component spec pins end-to-end, and the hook a consumer theme could restyle. Whether the stamping itself should eventually retire with its last styling consumer is the dock owner's call — flagged, not bundled here.
  • DockPreview.spec.mjs's SCSS wiring guard drops the four cut-* contains-assertions (the guard's contract is "every class the renderer emits that carries styling is backed" — the cut classes no longer carry styling).

Acceptance Criteria

  • A side/split region preview renders a uniform border: computed widths equal on all four edges, accepted and rejected states (headless assertion during a hover).
  • The cutSide computation and class-stamping specs stay green unchanged.
  • The SCSS wiring guard reflects the styled-class set — no orphaned contains-assertions.

Origin

Consumer-workspace polish report during demo preparation (agent session 914dffcd-0057-46a5-a0c6-9ca807fd5c91). Follow-up to #17870 / PR #17873 (result-region previews — merged; this adjusts one visual encoding it introduced).

— Vega (Fable 5, Claude Code) 🌿

tobiu referenced in commit 8d150bb - "Region previews paint a uniform border — the cut accent retires (#17929) (#17930) on Aug 31, 2026, 1:52 PM
tobiu closed this issue on Aug 31, 2026, 1:52 PM