mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
slide in diff when focused
This commit is contained in:
parent
cf0d81bf85
commit
c6c1bac3b4
1 changed files with 11 additions and 4 deletions
15
src/app.rs
15
src/app.rs
|
|
@ -91,10 +91,17 @@ impl App {
|
|||
let chunks = Layout::default()
|
||||
.direction(Direction::Horizontal)
|
||||
.constraints(
|
||||
[
|
||||
Constraint::Percentage(50),
|
||||
Constraint::Percentage(50),
|
||||
]
|
||||
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 a new issue