Skip to content

fix(tui): align borderless chrome to the shared text origin - #659

Merged
mohitranka merged 1 commit into
mainfrom
fix/tui-chrome-insets
Sep 12, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/tui-chrome-insets

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

Summary

Fixes findings 1, 3, 5 and 7 from the pane spacing/padding/borders PTY audit (docs/ui-spacing-review/investigation/, gitignored, local).

Changes

F1 — sidebar strips flush with the column edge

  • The single-row feedback strip now pads to TEXT_INSET, matching the composer, conversation and queue strip origins.
  • The queue strip insets title, rows, hover fill and hit-testing by the same amount via one shared inner_area, so pointer routing and paint cannot disagree.

F3 — bottom panel ignored pane padding and glued its title to the rule

  • Body, shell label and painted caret share TEXT_INSET.
  • > Terminal keeps one cell before the thick rule, matching every other titled surface.

F5 — modal padding had four different values

  • One contract: modal bodies pad MODAL_PAD_X (2) horizontally; titles stay border-adjacent. The live help overlay and the unified provider/model picker adopt it (help also drops its one-off Help title for the shared > Help grammar).

F7 — navigator tabs offset from their own box

  • Inactive tab labels now start on the navigator column's left edge; the reserved leading hover cell is gone. Hover keeps ground + weight, so no label moves on pointer enter/leave.

Docs

FORGE-DESIGN.md §7.5 (borderless surface origin), §9.2 (modal padding + title spacing), §9.9 (panel origin).

Validation

  • cargo test --package forge-tui --locked — 1265 lib tests + integration pass
  • cargo fmt --all -- --check, cargo clippy --workspace --all-targets --locked -- -D warnings — clean
  • PTY verified at 140×42: feedback/queue origin, panel body at edge+4 with > Terminal ━ title, picker content at border+3, theme dock rows at border+3, tabs at x=1, > Help modal

Remaining audit findings (F2 ellipsis, F4 binary title, F6 gutter language, F8 80×18 panel policy, F9 Ctrl+` portability) are untouched.

Findings 1, 3, 5 and 7 from the pane spacing/padding/borders audit.

Sidebar strips (finding 1)
- The single-row feedback strip rendered its text flush to the column edge;
  it now pads to TEXT_INSET, the same origin as the composer, the
  conversation and the queue strip.
- The queue strip insets title, rows, hover fill and hit-testing by the same
  amount through one shared `inner_area`, so click, hover and paint cannot
  disagree.

Bottom panel (finding 3)
- Body, shell label and caret share the pane text origin (TEXT_INSET)
  instead of hugging the frame edge.
- The `> Terminal` title keeps one cell before the thick rule, matching
  every other titled surface (`┌> Title ─…`).

Modal padding (finding 5)
- One contract: modal bodies pad `MODAL_PAD_X` (2) horizontally; the live
  help overlay and the unified picker adopt it (help also drops its
  one-off ` Help ` title for the shared `> Help` grammar). Title stays
  border-adjacent everywhere.

Navigator tabs (finding 7)
- Inactive tab labels now start on the navigator column's left edge; the
  reserved leading hover cell is gone. Hover keeps its ground plus a weight
  step, so no label moves when the pointer enters or leaves.

Docs: FORGE-DESIGN SS7.5, SS9.2, SS9.9 updated. Tests: forge-tui 1265 lib +
integration pass; fmt and clippy clean; PTY verified (strip origin, panel
body/title, picker and theme-dock insets, `> Help`).
@mohitranka
mohitranka merged commit a5f2883 into main Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant