mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
Make the column size response smoother
This commit is contained in:
parent
4552d369c6
commit
771b346435
1 changed files with 2 additions and 2 deletions
|
|
@ -71,11 +71,11 @@ impl DrawableComponent for InspectCommitPopup {
|
|||
return Ok(());
|
||||
}
|
||||
let constraints = match rect.width {
|
||||
..80 => [
|
||||
..64 => [
|
||||
Constraint::Percentage(50),
|
||||
Constraint::Percentage(50),
|
||||
],
|
||||
80..100 => [Constraint::Max(32), Constraint::Fill(1)],
|
||||
64..100 => [Constraint::Max(32), Constraint::Fill(1)],
|
||||
100..120 => [Constraint::Max(38), Constraint::Fill(1)],
|
||||
120..152 => [Constraint::Max(42), Constraint::Fill(1)],
|
||||
_ => [Constraint::Max(50), Constraint::Fill(1)],
|
||||
|
|
|
|||
Loading…
Reference in a new issue