mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-12-28 09:58:21 +01:00
Fixed version alignment
This commit is contained in:
parent
58009b637c
commit
fcd459a7ad
1 changed files with 1 additions and 1 deletions
|
@ -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]}...'
|
||||
|
|
Loading…
Reference in a new issue