|
@@ -21,6 +21,7 @@ assets.register('scss_all', scss)
|
|
|
class ArtifactItem:
|
|
|
file: str
|
|
|
description: str
|
|
|
+ width: int = 0
|
|
|
|
|
|
def __init__(self, file, description):
|
|
|
self.file = file
|
|
@@ -39,6 +40,9 @@ class Artifact:
|
|
|
self.changelog = changelog
|
|
|
self.artifacts = [ArtifactItem(**item)
|
|
|
for item in artifacts]
|
|
|
+ maxwidth = max((len(a.file) for a in self.artifacts), default=0)
|
|
|
+ for a in self.artifacts:
|
|
|
+ a.width = maxwidth
|
|
|
|
|
|
@classmethod
|
|
|
def from_json(cls, json_str):
|