Skip to content

Commit

Permalink
Fixed overflow (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
simlar-0 authored Feb 29, 2024
1 parent de93698 commit f387cd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/flaskr/templates/store/average_rating.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if product.rating %}
<ul class="list-inline" style="color: #ffc700;">
<ul class="list-inline small mb-2" style="color: #ffc700;">
{% for n in range(product.rating|int) %}
<li class="list-inline-item list-inline-item m-0">
<i class="bi bi-star-fill"></i>
Expand Down
6 changes: 3 additions & 3 deletions app/flaskr/templates/store/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<div class="order-2 order-lg-1 media-body">
<h6 class="text-truncate mt-0 font-weight-bold mb-2" data-type="product name"><strong>{{ product['name'] }}</strong></h6>
<p class="text-truncate text-muted font-italic mb-0 small" data-type="product description">{{ product['description'] }}</p>
<div class="d-flex justify-content-between align-items-center mt-0">
<h6 class="float-end font-weight-bold my-2" data-type="product price">{{ product.price|int }} kr</h6>
<div class="d-flex float-end justify-content-center justify-content-xl-start align-items-xl-end mt-2" style="margin: 0px;margin-right: 40px;">
<div class="d-flex justify-content-between align-items-center mt-2">
<h6 class="float-end font-weight-bold" data-type="product price">{{ product.price|int }} kr</h6>
<div class="d-flex float-end">
{% include 'store/average_rating.html'%}
</div>
</div>
Expand Down

0 comments on commit f387cd7

Please sign in to comment.