build: update ratatui to v0.28 (#41)

This commit is contained in:
Justin Restivo
2024-08-07 09:46:20 -04:00
committed by GitHub
parent 84066758ef
commit e9ac48dba1
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ impl App {
}
fn draw(&mut self, frame: &mut Frame) {
let area = frame.size();
let area = frame.area();
let widget = Tree::new(&self.items)
.expect("all item identifiers are unique")
.block(
@@ -198,7 +198,7 @@ fn run_app<B: Backend>(terminal: &mut Terminal<B>, mut app: App) -> std::io::Res
let area = Rect {
y: 0,
height: 1,
x: frame.size().width.saturating_sub(text.len() as u16),
x: frame.area().width.saturating_sub(text.len() as u16),
width: text.len() as u16,
};
frame.render_widget(