Fixed version alignment

This commit is contained in:
Dimitris Zlatanidis 2023-04-10 23:10:39 +03:00
parent 58009b637c
commit fcd459a7ad

View file

@ -71,7 +71,7 @@ class Ascii(Configs):
def draw_view_package(self, package: str, version: str, size: str, color: str, repo: str) -> None:
""" Draw nad print the packages. """
if len(version) >= 11:
if len(version) >= 11 and self.columns <= 80:
version: str = f'{version[:10]}...'
if len(package) >= 25:
package: str = f'{package[:24]}...'