Skip to content

Commit

Permalink
fix: minimum size for perm buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Terkwood committed Jun 14, 2022
1 parent f2feb41 commit 7552dfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zeditor"
version = "0.1.2-b"
version = "0.1.2-c"
edition = "2021"

[dependencies]
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const VISIBLE_LINES_REPORT: &str = "lines visible report";

const FILENAME_LABEL_LENGTH: usize = 15;

const PERM_BUTTONS_SIZE: (usize, usize) = (30, 11);

struct STATE(pub Vec<Hit>);

#[tokio::main]
Expand Down Expand Up @@ -82,7 +84,7 @@ async fn main() {
LinearLayout::horizontal()
.child(found_lastsize)
.child(DummyView)
.child(perm_buttons),
.child(perm_buttons.fixed_size(PERM_BUTTONS_SIZE)),
)
.title("zeditor"),
);
Expand Down

0 comments on commit 7552dfd

Please sign in to comment.