commit 89297ec7cd64a018a4408983806a33408cd1be6c
parent 3c0e4e91489dbc5aac96d5162a28f5a0c11666b4
Author: kernelkind <kernelkind@gmail.com>
Date: Thu, 20 Nov 2025 15:04:09 -0700
fix(nav-drawer): spacing issue
when opening and closing the nav drawer, the spacing of the whole
app would change. Introduced in
db9005e4034268b0504c4bf133f82a5f16d920f3
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -310,6 +310,7 @@ impl Chrome {
.vertical(|mut strip| {
// the actual content, shifted up because of the soft keyboard
strip.cell(|ui| {
+ ui.spacing_mut().item_spacing = prev_spacing;
action = self.panel(ctx, ui, keyboard_height);
});
@@ -321,7 +322,6 @@ impl Chrome {
}
});
});
- ui.spacing_mut().item_spacing = prev_spacing;
// hovering virtual keyboard
if virtual_keyboard {