From ca5c33e3f87e392a141f01e48bc5097965fbeb02 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Tue, 17 May 2022 10:41:40 -0300 Subject: [PATCH] [view] improvement: increasing the version column display limit to 22% --- CHANGELOG.md | 2 +- bauh/view/qt/apps_table.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d666d654..7adb912a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,7 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - table columns width for maximized window - settings window size rules moved to stylesheet files - enforcing maximum width and height for the management window based on the primary screen resolution [#261](https://github.com/vinifmor/bauh/issues/261) - - updates: only displaying both the installed and latest versions on the "version" column if its width is no more than 20% of the primary screen width (otherwise just the latest version will be displayed) + - updates: only displaying both the installed and latest versions on the "version" column if its width is no more than 22% of the primary screen width (otherwise just the latest version will be displayed) ### Fixes - Flatpak diff --git a/bauh/view/qt/apps_table.py b/bauh/view/qt/apps_table.py index 4eb6525c..abd09c1c 100644 --- a/bauh/view/qt/apps_table.py +++ b/bauh/view/qt/apps_table.py @@ -387,7 +387,7 @@ class PackagesTable(QTableWidget): f"{self.i18n['version.latest']}: {pkg.model.latest_version})" label_version.setText(f"{label_version.text()} > {pkg.model.latest_version}") - if label_version.sizeHint().width() / self.screen_width > 0.20: + if label_version.sizeHint().width() / self.screen_width > 0.22: label_version.setText(pkg.model.latest_version) item.setToolTip(tooltip)