Skip to content

Commit

Permalink
build: bump ratatui from 0.27.0 to 0.28.1
Browse files Browse the repository at this point in the history
Bumps [ratatui](https://github.com/ratatui/ratatui) from 0.27.0 to 0.28.1.
- [Release notes](https://github.com/ratatui/ratatui/releases)
- [Changelog](https://github.com/ratatui/ratatui/blob/main/CHANGELOG.md)
- [Commits](ratatui/ratatui@v0.27.0...v0.28.1)

---
updated-dependencies:
- dependency-name: ratatui
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Waleed Khan <me@waleedkhan.name>
  • Loading branch information
dependabot[bot] and arxanas committed Oct 14, 2024
1 parent e47ed32 commit 89ba54f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 53 deletions.
72 changes: 22 additions & 50 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scm-record/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ crossterm = "0.28"
num-traits = "0.2"
thiserror = "1.0"
tracing = "0.1"
ratatui = "0.27.0"
ratatui = "0.28.1"
unicode-width = "0.1"

# Features: serde
Expand Down
2 changes: 1 addition & 1 deletion scm-record/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ impl<'a, ComponentId: Clone + Debug + Eq + Hash> Viewport<'a, ComponentId> {
component: &C,
) -> DrawnRects<C::Id> {
let widget = TopLevelWidget { component, x, y };
let term_area = frame.size();
let term_area = frame.area();
let mut drawn_rects = Default::default();
frame.render_stateful_widget(widget, term_area, &mut drawn_rects);
drawn_rects
Expand Down
2 changes: 1 addition & 1 deletion scm-record/src/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ impl<'state, 'input> Recorder<'state, 'input> {
'outer: loop {
let menu_bar = self.make_menu_bar();
let app = self.make_app(menu_bar.clone(), None);
let term_height = usize::from(term.get_frame().size().height);
let term_height = usize::from(term.get_frame().area().height);

let mut drawn_rects: Option<DrawnRects<ComponentId>> = None;
term.draw(|frame| {
Expand Down

0 comments on commit 89ba54f

Please sign in to comment.