From 7dc3bf839c399a8645cdb123ca00d128c858494a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vuka=C5=A1in=20Vojinovi=C4=87?= <150025636+git-f0x@users.noreply.github.com> Date: Sat, 13 Jul 2024 17:45:39 +0200 Subject: [PATCH] improv: don't change padding on location edit This fixes the other items (files, sorting headings...) moving when clicking the pencil. --- src/tab.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index 73f5b6d..84990bc 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -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