From: Danilo M. Date: Sun, 3 May 2026 11:01:55 +0000 (+0200) Subject: fix: remove stale f-string prefix on badge strings, reset size hint in MissingTransla... X-Git-Tag: v1.1~3 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=877847ccea4b5328d17739293d6186ff85d2539e;p=publisher.git fix: remove stale f-string prefix on badge strings, reset size hint in MissingTranslationView --- diff --git a/ui/articles_view.py b/ui/articles_view.py index 36ca5ec..511e102 100644 --- a/ui/articles_view.py +++ b/ui/articles_view.py @@ -12,9 +12,9 @@ class ArticleItem(QListWidgetItem): super().__init__() self.article = article if article.has_translation: - badge = f"🇬🇧 ✓" if article.lang == "it" else "🇮🇹 ✓" + badge = "🇬🇧 ✓" if article.lang == "it" else "🇮🇹 ✓" else: - badge = f"🇬🇧 ✗" if article.lang == "it" else "🇮🇹 ✗" + badge = "🇬🇧 ✗" if article.lang == "it" else "🇮🇹 ✗" line1 = f"{article.slug} [{badge}]" if article.draft: line1 = f"[DRAFT] {line1}" @@ -96,4 +96,5 @@ class MissingTranslationView(QWidget): lang_other = "🇬🇧" if a.lang == "it" else "🇮🇹" item = ArticleItem(a) item.setText(f"{a.slug} [manca {lang_other}] ({a.lang.upper()})") + item.setSizeHint(QSize(0, 26)) self._list.addItem(item)