mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-29 16:19:43 +08:00
fix(mobile): mobile keyboard padding (#15365)
#### PR Dependency Tree * **PR #15365** 👈 This tree was auto-generated by [Charcoal](https://github.com/danerwilliams/charcoal) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved mobile keyboard and toolbar layout handling when the keyboard overlays or resizes app content. - Prevented incorrect extra spacing when Android applies keyboard insets directly. - Updated toolbar sizing and visibility states for smoother transitions. - **Style** - Adjusted mobile bottom spacing to account for keyboard height, safe areas, and toolbar height. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -149,6 +149,9 @@ framework.impl(VirtualKeyboardProvider, {
|
||||
// even though the `keyboardWillShow` event is still triggered.
|
||||
visible: info.keyboardHeight !== 0,
|
||||
height: info.keyboardHeight - navBarHeight,
|
||||
// SystemBars applies the IME inset to the WebView parent, so the
|
||||
// keyboard no longer overlaps the web content on Android.
|
||||
overlaysContent: false,
|
||||
});
|
||||
})().catch(console.error);
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user