feat: help popup display viewing progress (#2388)

This commit is contained in:
wugeer 2024-10-19 00:07:35 +08:00 committed by GitHub
parent ba9adf40f4
commit fb1ba7c0b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View file

@ -38,6 +38,7 @@ Checkout [THEMES.md](./THEMES.md) for more info.
### Added
* due to github runner changes, the regular mac build is now arm64, so we added support for intel x86 apple build in nightlies and releases (via separat artifact)
* support `BUILD_GIT_COMMIT_ID` enabling builds from `git archive` generated source tarballs or other outside a git repo [[@alerque](https://github.com/alerque)] ([#2187](https://github.com/extrawurst/gitui/pull/2187))
* support help popup display viewing progress[[@wugeer](https://github.com/wugeer)](https://github.com/extrawurst/gitui/pull/2388))
### Fixes
* update yanked dependency to `libc` to fix building with `--locked`.

View file

@ -67,6 +67,15 @@ impl DrawableComponent for HelpPopup {
chunks[0],
);
ui::draw_scrollbar(
f,
area,
&self.theme,
self.cmds.len(),
self.selection as usize,
ui::Orientation::Vertical,
);
f.render_widget(
Paragraph::new(Line::from(vec![Span::styled(
Cow::from(format!(