improv: don't change padding on location edit
This fixes the other items (files, sorting headings...) moving when clicking the pencil.
This commit is contained in:
parent
505cea111d
commit
7dc3bf839c
1 changed files with 6 additions and 2 deletions
|
|
@ -1967,9 +1967,13 @@ impl Tab {
|
||||||
.on_input(|input| {
|
.on_input(|input| {
|
||||||
Message::EditLocation(Some(Location::Path(PathBuf::from(input))))
|
Message::EditLocation(Some(Location::Path(PathBuf::from(input))))
|
||||||
})
|
})
|
||||||
.on_submit(Message::Location(location.clone())),
|
.on_submit(Message::Location(location.clone()))
|
||||||
|
.line_height(1.0),
|
||||||
);
|
);
|
||||||
return row.padding([0, space_s]).into();
|
let mut column = widget::column::with_capacity(2).padding([0, space_s]);
|
||||||
|
column = column.push(row);
|
||||||
|
column = column.push(horizontal_rule(1));
|
||||||
|
return column.into();
|
||||||
}
|
}
|
||||||
_ => {
|
_ => {
|
||||||
//TODO: allow editing other locations
|
//TODO: allow editing other locations
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue