diff options
| author | Danilo M. <danix@danix.xyz> | 2026-05-03 13:01:55 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-05-03 13:01:55 +0200 |
| commit | 877847ccea4b5328d17739293d6186ff85d2539e (patch) | |
| tree | 069bca07bdaaacf9318fb5f31b41bf056f28111b /ui | |
| parent | 1570667d5d2b66588bd7d5b44ab70c25ba16d5d4 (diff) | |
| download | publisher-877847ccea4b5328d17739293d6186ff85d2539e.tar.gz publisher-877847ccea4b5328d17739293d6186ff85d2539e.zip | |
fix: remove stale f-string prefix on badge strings, reset size hint in MissingTranslationView
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/articles_view.py | 5 |
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) |
