diff --git a/android/src/app/src/main/java/it/wojtaszek/mc/wrapper/MainActivity.kt b/android/src/app/src/main/java/it/wojtaszek/mc/wrapper/MainActivity.kt index 13a064e..36e55eb 100644 --- a/android/src/app/src/main/java/it/wojtaszek/mc/wrapper/MainActivity.kt +++ b/android/src/app/src/main/java/it/wojtaszek/mc/wrapper/MainActivity.kt @@ -177,6 +177,9 @@ class MainActivity : AppCompatActivity() { javaScriptEnabled = true domStorageEnabled = true cacheMode = WebSettings.LOAD_DEFAULT + // WebView scales text by the system font-size setting, Chrome does not. + // Pin it so the wrapper renders the page exactly like the browser does. + textZoom = 100 } installNotificationShim() diff --git a/app/templates/dm.html b/app/templates/dm.html index dce42f8..d4bb275 100644 --- a/app/templates/dm.html +++ b/app/templates/dm.html @@ -193,11 +193,11 @@
-
- +
+ {{ t('common.connecting') }} - {{ t('chat.updated', time=t('common.never')) }} + {{ t('chat.updated', time=t('common.never')) }}
diff --git a/app/templates/index.html b/app/templates/index.html index f4b45c4..a6fcea9 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -96,9 +96,9 @@
-
-
- +
+
+ {{ t('common.connecting') }}
- {{ t('chat.updated', time=t('common.never')) }} + {{ t('chat.updated', time=t('common.never')) }}
diff --git a/docs/whatsnew.md b/docs/whatsnew.md index f1c9c15..ce4098e 100644 --- a/docs/whatsnew.md +++ b/docs/whatsnew.md @@ -16,6 +16,11 @@ For deep technical notes, see [architecture.md](architecture.md). For the full g - **You can add a language yourself, without waiting for a release.** A language is a single file. Copy `en.json` from `app/translations/`, translate the values, and drop it into a `translations` folder inside your config directory — the same place the database lives. Refresh the page and it appears in the Language list, named however you named it, with no rebuild and no restart. Anything you leave untranslated falls back to English, so a half-finished translation is perfectly usable. A file you drop in also overrides one that ships with the app, so you can correct the built-in Polish on your own server. English and Polish ship in the box; everything else is open to whoever wants to write it. See [translations.md](translations.md), which explains the format and — importantly — which words to leave alone: mesh terms like flood, hop, advert, RSSI and the repeater roles stay English in every language, because that is what the firmware, the CLI and the forums all use. The Console and the log lines themselves stay English for the same reason. - **Times and dates behave the same in every language.** Only the words are translated — "Yesterday" becomes "Wczoraj", "5 min ago" becomes "5 min temu". The clock and the number formatting keep following your browser's own settings, so switching the menus to English will not suddenly turn your 24-hour clock into "9:53 AM". One display of large numbers on the repeater statistics page had been hard-coded to American thousands separators; it now follows your locale like everything else. +### Fixes + +- **The Android app no longer renders text larger than the browser does.** The app is a wrapper around the same page you open in Chrome, but Android's WebView quietly scales text by your phone's system font-size setting while Chrome ignores it and uses its own. If you had enlarged the system font even one step, everything in the app came out around 20% bigger than on the website — the title truncated to "mc-web…", longer messages wrapped earlier, and the connection status and refresh time at the bottom broke across two lines each. The app now pins text at the same size the browser uses. This needs a new APK, so reinstall the app to pick it up. +- **The bar at the bottom copes with text that does not fit.** The connection status, the region badge and the "Updated:" time sat in a row that could not wrap, so when they ran out of room each one broke apart internally instead — a green dot with "Connected" stranded underneath it, a time split from its own label. They now drop onto a second line as whole items. This mostly showed up in translated interfaces, where the labels are longer than the English ones they were laid out for ("Aktualizacja:" against "Updated:"), and on narrow phones. + --- ## 2.4.2 — 2026-07-31