Add the content's horizontal padding for card components.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 4 weeks ago
parent bf333aad07
commit e9e49572d1

@ -63,7 +63,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do
</div>
</div>
<% end %>
<div class="flex flex-col items-center py-5 text-center">
<div class="flex flex-col items-center py-5 text-center px-2">
<.link navigate={~p"/authors/#{@author.id}"}>
<%= if @author.avatar_url != nil do %>
<img

@ -63,7 +63,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookCard do
</div>
</div>
<% end %>
<div class="flex flex-col items-center py-5 text-center">
<div class="flex flex-col items-center py-5 text-center px-2">
<.link navigate={~p"/books/#{@book.id}"}>
<%= if @book.cover_image_url != nil do %>
<img class="w-36 mb-3 shadow-lg" src={@book.cover_image_url} alt={"#{@book.title} image"} />

Loading…
Cancel
Save