summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/articles_view.py5
1 files 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)