Repository navigation
fix(tui): align borderless chrome to the shared text origin - #659
Merged
Merged
Conversation
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`).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
TEXT_INSET, matching the composer, conversation and queue strip origins.inner_area, so pointer routing and paint cannot disagree.F3 — bottom panel ignored pane padding and glued its title to the rule
TEXT_INSET.> Terminalkeeps one cell before the thick rule, matching every other titled surface.F5 — modal padding had four different values
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-offHelptitle for the shared> Helpgrammar).F7 — navigator tabs offset from their own box
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 passcargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warnings— clean> Terminal ━title, picker content at border+3, theme dock rows at border+3, tabs at x=1,> HelpmodalRemaining audit findings (F2 ellipsis, F4 binary title, F6 gutter language, F8 80×18 panel policy, F9 Ctrl+` portability) are untouched.