android webview size fix

This commit is contained in:
polv committed 2026-03-24 11:31:44 +07:00
1 parent 28c743d78c
commit 6078e43fff
3 files changed
+24 -1

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
Chinese grammar data manually copied and edited from <https://resources.allsetlearning.com/chinese/grammar/Main_Page>
## How it works for Android
Using Tauri, it runs on Android even with dev server down, with `tauri android run`. (while no hot-reloading)
An extra CSS is needed for Android webview fix:-
```css
body {
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
}
```