Skip to content

Commit

Permalink
Fix clickable label row
Browse files Browse the repository at this point in the history
  • Loading branch information
PaoloCappelli committed Jan 23, 2025
1 parent a0fe8e3 commit 4e4a7b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/_rating.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
.average-rating {
display: flex;
align-items: center;
margin-left: 4px;
gap: 4px;
}

.rating-items {
Expand Down
6 changes: 3 additions & 3 deletions app/views/subjects/_rating.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<label class="mdc-deprecated-list-item">
<div class="mdc-deprecated-list-item non-clickable-list-item">
Puntuación:
<div class="rating-container">
<div class="average-rating">
<span class="material-icons mdc-icon-button">star</span>
<span class="material-icons">star</span>
<%= @subject.average_rating || "Sin calificar" %>
</div>
<div class="rating-items">
Expand All @@ -19,4 +19,4 @@
<% end %>
</div>
</div>
</label>
</div>

0 comments on commit 4e4a7b7

Please sign in to comment.