Skip to content

Commit

Permalink
fix: cover styles
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Oct 10, 2023
1 parent 52a32cd commit b1f7ffc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/views/albums/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<% end %>

<div class="py-4 flex justify-items-start">
<div id="<%=dom_id(@album, :cover) %>" class="w-[170px] bg-gray-200 object-fill overflow-hidden mr-4" data-turbo-transition="cover">
<%= image_tag @album.cover_url %>
<div id="<%=dom_id(@album, :cover) %>" class="w-[170px] h-[170px] bg-gray-200 object-fill overflow-hidden mr-4" data-turbo-transition="cover">
<%= image_tag @album.cover_url, class: "w-full h-full object-cover" %>
</div>
<div class="flex flex-col justify-center">
<div class="flex flex-row items-center">
Expand Down
4 changes: 2 additions & 2 deletions app/views/artists/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<div class="py-4 flex justify-between items-center">
<div class="flex justify-items-start">
<div class="w-32 bg-gray-200 object-fill rounded-full overflow-hidden mr-4">
<%= image_tag @artist.cover_url %>
<div class="w-32 h-32 bg-gray-200 rounded-full overflow-hidden mr-4">
<%= image_tag @artist.cover_url, class: "w-full h-full object-cover" %>
</div>
<div class="flex flex-col justify-center">
<div class="flex items-center">
Expand Down

0 comments on commit b1f7ffc

Please sign in to comment.