UI: Web Assets v2 upgrade #85

Merged
Márton Lente merged 52 commits from martonlente/extensions-website:ui/web-assets-v2-upgrade into main 2024-04-30 17:57:33 +02:00
2 changed files with 11 additions and 8 deletions
Showing only changes of commit 7c98bc87b0 - Show all commits

View File

@ -63,6 +63,11 @@
--star-size: 1.6em --star-size: 1.6em
width: 8em width: 8em
// TODO: refactor stars-helper
.stars-helper
max-height: 1.4rem
transform: translateY(-.1rem)
.ratings-summary .ratings-summary
display: flex display: flex
flex-direction: column flex-direction: column

View File

@ -14,14 +14,12 @@
{{ rating.user }} {{ rating.user }}
</a> </a>
</li> </li>
<li class="me-auto"> <li class="align-items-center d-flex me-auto">
<div class="align-items-center d-flex">
{% with score_percentage=rating.score %} {% with score_percentage=rating.score %}
<a href="{{ extension.get_ratings_url }}?score={{ rating.score }}"> <a class="stars-helper" href="{{ extension.get_ratings_url }}?score={{ rating.score }}">
{% include "ratings/components/average.html" with score=rating.score %} {% include "ratings/components/average.html" with score=rating.score %}
</a> </a>
{% endwith %} {% endwith %}
</div>
</li> </li>
<li> <li>
<a href="{{ extension.get_versions_url }}#v{{ rating.version.version|slugify }}"> <a href="{{ extension.get_versions_url }}#v{{ rating.version.version|slugify }}">