From 877847ccea4b5328d17739293d6186ff85d2539e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 3 May 2026 13:01:55 +0200 Subject: fix: remove stale f-string prefix on badge strings, reset size hint in MissingTranslationView --- ui/articles_view.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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) -- cgit v1.2.3