Skip to content

Add vertical scrolling for parameter list in TUI#100

Merged
Gnarus-G merged 5 commits intomainfrom
feature/68-tui-scrolling
Feb 17, 2026
Merged

Add vertical scrolling for parameter list in TUI#100
Gnarus-G merged 5 commits intomainfrom
feature/68-tui-scrolling

Conversation

@Gnarus-G
Copy link
Copy Markdown
Owner

Implements vertical scrolling for the parameter input widget when parameters overflow the visible area. Uses ratatui's Scrollbar widget with mouse wheel support.

Features:

  • Shows scrollbar when parameters don't fit in viewport
  • Mouse wheel scroll support
  • Maintains scroll offset state

Closes #68

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
maccel Ready Ready Preview, Comment Feb 17, 2026 2:39am

Allow users to scroll through parameters using page up/down keys
by mapping them to dedicated Action variants. This enhances navigation
smoothness and matches typical terminal UI expectations for paging.

When content height changes dynamically, the scroll behavior adapts
using calculated visible rows based on available space and margin.

Updates to scroll logic ensure proper positioning when pages exceed
visible area, maintaining user context during navigation.

This change sets up foundation for proper scrollbars and improves
accessibility by supporting keyboard-based pagination of parameters.

<footer>
</footer>
Use relative target/release path directly instead of constructing with pwd.
This resolves issues when running from different directories and aligns with
standard Makefile conventions for installed binaries.
- Create CustomScrollbar widget in tui/src/widgets/scrollbar.rs
- Replace ratatui's built-in Scrollbar with custom implementation
- Calculate thumb position using precise float math to ensure thumb
  reaches bottom when viewing last parameters
- Add scrollbar to tui/src/widgets/mod.rs and lib.rs
- Update screen.rs to use the new CustomScrollbar widget
@Gnarus-G Gnarus-G merged commit 5e7793d into main Feb 17, 2026
3 checks passed
@Gnarus-G Gnarus-G deleted the feature/68-tui-scrolling branch February 17, 2026 02:39
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.

Support scrolling on parameter input widget

1 participant