mirror of
https://gitlab.com/ArkHost/HelixNotes.git
synced 2026-11-21 19:04:56 +01:00
fix: Interface Scale on Android, and a larger default on phones (#288)
Phones used the desktop sizes with no way to enlarge the interface: the Interface Scale setting was hidden on mobile, and setZoom does nothing on Android. Android now has the setting (100, 115, 125 and 140%) and starts at 115% until a scale is chosen. It is applied through the viewport scale, so taps and menu positions keep matching. Presets that would make the layout narrower than the mobile menus are left out on small phones.
This commit is contained in:
1 parent
a80425e084
commit
64266969f3
4 files changed
+68
-31
No files matched your search
@@ -33,6 +33,9 @@ class MainActivity : TauriActivity() {
|
||||
// paragraph font-size and line-height from viewport heuristics and ignores our CSS (only
|
||||
// size + line-height were affected; font-family was fine). NORMAL turns it off. (#100)
|
||||
webView.settings.layoutAlgorithm = android.webkit.WebSettings.LayoutAlgorithm.NORMAL
|
||||
// Honor the viewport meta tag's scale, which is how the Interface Scale setting is applied
|
||||
// on Android (WebView zoom APIs are not exposed through Tauri here). (#288)
|
||||
webView.settings.useWideViewPort = true
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
|
||||
Reference in new issue
Block a user