We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a5e34 commit b939c35Copy full SHA for b939c35
generate_images.py
@@ -64,8 +64,12 @@ async def generate_languages(s: Stats) -> None:
64
for i, (lang, data) in enumerate(sorted_languages):
65
color = data.get("color")
66
color = color if color is not None else "#000000"
67
+ ratio = [.98, .02]
68
+ if i == len(sorted_languages) - 1:
69
+ ratio = [1, 0]
70
progress += (f'<span style="background-color: {color};'
- f'width: {data.get("prop", 0):0.3f}%;" '
71
+ f'width: {(ratio[0] * data.get("prop", 0)):0.3f}%;'
72
+ f'margin-right: {(ratio[1] * data.get("prop", 0)):0.3f}%;" '
73
f'class="progress-item"></span>')
74
lang_list += f"""
75
<li style="animation-delay: {i * delay_between}ms;">
templates/languages.svg
0 commit comments