Update the card component to center their text.
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-04-01 17:51:38 +03:00
parent 731c67302a
commit 488b610aed
2 changed files with 2 additions and 2 deletions
@@ -31,7 +31,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do
</ul>
</div>
</div>
<div class="flex flex-col items-center py-5">
<div class="flex flex-col items-center py-5 text-center">
<.link navigate={~p"/authors/#{@author.id}"}>
<%= if @author.avatar_url != nil do %>
<img class="w-36 h-36 mb-3 rounded-full shadow-lg" src={@author.avatar_url} alt={"#{@author.name} image"} />
@@ -31,7 +31,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookCard do
</ul>
</div>
</div>
<div class="flex flex-col items-center py-5">
<div class="flex flex-col items-center py-5 text-center">
<.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"} />