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:
Vukašin Vojinović 2024-07-13 17:45:39 +02:00 committed by GitHub
parent 505cea111d
commit 7dc3bf839c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1967,9 +1967,13 @@ impl Tab {
.on_input(|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