mirror of
https://github.com/extrawurst/gitui.git
synced 2024-12-25 10:02:48 +03:00
slide in diff when focused
This commit is contained in:
parent
cf0d81bf85
commit
c6c1bac3b4
@ -91,10 +91,17 @@ impl App {
|
||||
let chunks = Layout::default()
|
||||
.direction(Direction::Horizontal)
|
||||
.constraints(
|
||||
if self.focus == Focus::Diff {
|
||||
[
|
||||
Constraint::Percentage(30),
|
||||
Constraint::Percentage(70),
|
||||
]
|
||||
} else {
|
||||
[
|
||||
Constraint::Percentage(50),
|
||||
Constraint::Percentage(50),
|
||||
]
|
||||
}
|
||||
.as_ref(),
|
||||
)
|
||||
.split(chunks_main[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user