mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28: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()
|
let chunks = Layout::default()
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.constraints(
|
.constraints(
|
||||||
[
|
if self.focus == Focus::Diff {
|
||||||
Constraint::Percentage(50),
|
[
|
||||||
Constraint::Percentage(50),
|
Constraint::Percentage(30),
|
||||||
]
|
Constraint::Percentage(70),
|
||||||
|
]
|
||||||
|
} else {
|
||||||
|
[
|
||||||
|
Constraint::Percentage(50),
|
||||||
|
Constraint::Percentage(50),
|
||||||
|
]
|
||||||
|
}
|
||||||
.as_ref(),
|
.as_ref(),
|
||||||
)
|
)
|
||||||
.split(chunks_main[1]);
|
.split(chunks_main[1]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue