Skip to content

Commit

Permalink
deps: ratatui 0.29 update
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Oct 25, 2024
1 parent aa086d6 commit c1955f7
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 24 deletions.
48 changes: 30 additions & 18 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "macmon"
version = "0.3.2"
version = "0.3.3"
edition = "2021"

[lints.rust]
Expand All @@ -16,6 +16,6 @@ strip = false
clap = { version = "4.5.20", features = ["derive"] }
core-foundation = "0.10.0"
libc = "0.2.161"
ratatui = { version = "0.28.1", features = ["serde"] }
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.129"
ratatui = { version = "0.29.0", features = ["serde"] }
serde = { version = "1.0.213", features = ["derive"] }
serde_json = "1.0.132"
4 changes: 2 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ impl App {
.padding(Padding::ZERO);

if label_l.len() > 0 {
block = block.title(block::Title::from(format!(" {label_l} ")).alignment(Alignment::Left));
block = block.title_top(Line::from(format!(" {label_l} ")));
}

if label_r.len() > 0 {
block = block.title(block::Title::from(format!(" {label_r} ")).alignment(Alignment::Right));
block = block.title_top(Line::from(format!(" {label_r} ")).alignment(Alignment::Right));
}

block
Expand Down

0 comments on commit c1955f7

Please sign in to comment.