Skip to content

Commit

Permalink
minor/team-image-ui-fix (#1076)
Browse files Browse the repository at this point in the history
* Minor UI fix on checkout for teams with missing image

---------

Co-authored-by: kvn <[email protected]>
  • Loading branch information
halfmoonui and crypto-rizzo authored Mar 4, 2024
1 parent 85785ca commit b27661d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/templates/checkout/checkout_page_one.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
{% if event.team.image %}
<img src="{{ event.team.image.url }}" class="d-block w-100 h-auto" alt="Team image">
{% else %}
<div class="rounded-circle d-flex align-items-center justify-content-center bg-secondary-subtle flex-shrink-0" style="width: 125%; height: 125%;">
<span class="text-uppercase fs-3 m-0 lh-1 fw-bold">{{ event.team.name|slice:"0:1" }}</span>
<div class="w-100 h-100 rounded d-flex align-items-center justify-content-center bg-secondary-subtle flex-shrink-0">
<span class="text-uppercase fs-3 mt-1 fw-bold">{{ event.team.name|slice:"0:1" }}</span>
</div>
{% endif %}
</div>
Expand Down

0 comments on commit b27661d

Please sign in to comment.