From e1339ccde7df46fa06ea5d1ccb7b9f632ed98900 Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Tue, 4 Apr 2023 23:14:34 -0400 Subject: [PATCH] Add release notes --- docs/releases.md | 6 ++++++ web/src/components/Preferences.js | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/releases.md b/docs/releases.md index a2b00cc8..16afde60 100644 --- a/docs/releases.md +++ b/docs/releases.md @@ -1163,3 +1163,9 @@ and the [ntfy Android app](https://github.com/binwiederhier/ntfy-android/release **Additional languages:** * Swedish (thanks to [@hellbown](https://hosted.weblate.org/user/hellbown/)) + +### ntfy server v2.4.0 (UNRELEASED) + +**Bug fixes + maintenance:** + +* Hide country flags on Windows ([#606](https://github.com/binwiederhier/ntfy/issues/606), thanks to [@cmeis](https://github.com/cmeis) for reporting, and to [@pokej6](https://github.com/pokej6) for fixing it) diff --git a/web/src/components/Preferences.js b/web/src/components/Preferences.js index 8aa1ea0b..7cbdcabe 100644 --- a/web/src/components/Preferences.js +++ b/web/src/components/Preferences.js @@ -438,14 +438,12 @@ const Language = () => { const labelId = "prefLanguage"; const lang = i18n.language ?? "en"; - // Country flags are displayed using emoji. Emoji rendereing is handled by platform fonts. + // Country flags are displayed using emoji. Emoji rendering is handled by platform fonts. // Windows in particular does not yet play nicely with flag emoji so for now, hide flags on Windows. - // Note: There are ways around this by using custom fonts. This appears to be implemented in Firefox... - // Not worth the hassle. const randomFlags = shuffle(["🇬🇧", "🇺🇸", "🇪🇸", "🇫🇷", "🇧🇬", "🇨🇿", "🇩🇪", "🇵🇱", "🇺🇦", "🇨🇳", "🇮🇹", "🇭🇺", "🇧🇷", "🇳🇱", "🇮🇩", "🇯🇵", "🇷🇺", "🇹🇷"]).slice(0, 3); const showFlags = !navigator.userAgent.includes("Windows"); let title = t("prefs_appearance_language_title"); - if (showFlags === true) { + if (showFlags) { title += " " + randomFlags.join(" "); }