Repository navigation
Keep TUI layouts readable and selections visible in small terminals - #151
Merged
Merged
Conversation
PgUp/PgDn in help moved a fixed 10 rows, so on short terminals the rows between pages were unreachable; page by the popup's visible height as hop details now do. The mid-width status hints were chosen by a fixed 60-column threshold that ignored the "? help" prefix and clipped "Enter details"; fall back to the short hints whenever the full set would not fit.
lance0
force-pushed
the
fix/responsive-tui-layouts
branch
from
October 16, 2026 15:53
19f2404 to
58d364b
Compare
lance0
marked this pull request as ready for review
October 16, 2026 15:58
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.
Small terminals currently squeeze every hop column until headings and numbers lose digits, and selecting a hop or target below the viewport leaves it invisible. Help and settings also clip their last controls at 80×24.
This change chooses complete columns that fit, keeps numeric cells intact (including large values), scrolls the selected hop and target into view, and gives IPv6 target addresses their own line. Help gains PgUp/PgDn/Home/End scrolling; settings follows the active section and API-key cursor. Close controls stay fixed, the status bar keeps help visible, and header warnings precede long destination/routing text. The Recent column is labelled and latency headings include milliseconds.
Stacked on #145 so its extension indicators and hop-detail scrolling remain available. Additional statistics are available in Enter → hop details when columns are omitted. Layout follows Ratatui's explicit sizing model: https://ratatui.rs/concepts/layout/.
Validation: full build, test suite (library, binary, integration and doctest), clippy with warnings denied, formatting, and documentation with warnings denied. Added buffer regressions at 60×20, 80×24 and 160×40 across all display modes, 64-hop selection, 20 IPv6 targets, short help/settings, long API keys, Unicode cell widths and large numbers.