commit df5cf8a1fc28a78bcb58b892717a85835da01591
parent 7528df25b9405b600cf37ac6ac87bbca0cf92b37
Author: kernelkind <kernelkind@gmail.com>
Date: Wed, 8 Oct 2025 16:43:52 -0400
fix: nav drawer shadow extends all the way vertically
Signed-off-by: kernelkind <kernelkind@gmail.com>
Diffstat:
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -287,24 +287,29 @@ impl Chrome {
// if the soft keyboard is open, shrink the chrome contents
let mut action: Option<ChromePanelAction> = None;
- // build a strip to carve out the soft keyboard inset
- StripBuilder::new(ui)
- .size(Size::remainder())
- .size(Size::exact(keyboard_height))
- .vertical(|mut strip| {
- // the actual content, shifted up because of the soft keyboard
- strip.cell(|ui| {
- action = self.panel(ctx, ui, keyboard_height);
- });
- // the filler space taken up by the soft keyboard
- strip.cell(|ui| {
- // keyboard-visibility virtual keyboard
- if virtual_keyboard && keyboard_height > 0.0 {
- virtual_keyboard_ui(ui, ui.available_rect_before_wrap())
- }
+ if keyboard_height == 0.0 {
+ action = self.panel(ctx, ui, keyboard_height);
+ } else {
+ // build a strip to carve out the soft keyboard inset
+ StripBuilder::new(ui)
+ .size(Size::remainder())
+ .size(Size::exact(keyboard_height))
+ .vertical(|mut strip| {
+ // the actual content, shifted up because of the soft keyboard
+ strip.cell(|ui| {
+ action = self.panel(ctx, ui, keyboard_height);
+ });
+
+ // the filler space taken up by the soft keyboard
+ strip.cell(|ui| {
+ // keyboard-visibility virtual keyboard
+ if virtual_keyboard && keyboard_height > 0.0 {
+ virtual_keyboard_ui(ui, ui.available_rect_before_wrap())
+ }
+ });
});
- });
+ }
// hovering virtual keyboard
if virtual_keyboard {