commit dbba2a5271b7173172fbc09aa32ed0a33fcaa25b
parent 88e641525364d7d9756c81683fdd53ffca9b6181
Author: kernelkind <kernelkind@gmail.com>
Date: Wed, 22 Oct 2025 16:36:18 -0400
Revert "fix: nav drawer shadow extends all the way vertically"
This reverts commit df5cf8a1fc28a78bcb58b892717a85835da01591.
Diffstat:
1 file changed, 16 insertions(+), 21 deletions(-)
diff --git a/crates/notedeck_chrome/src/chrome.rs b/crates/notedeck_chrome/src/chrome.rs
@@ -301,29 +301,24 @@ 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);
+ });
- 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())
- }
- });
+ // 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 {