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

dev
KKlochko 3 months ago
parent 731c67302a
commit 488b610aed

@ -31,7 +31,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do
</ul> </ul>
</div> </div>
</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}"}> <.link navigate={~p"/authors/#{@author.id}"}>
<%= if @author.avatar_url != nil do %> <%= 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"} /> <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> </ul>
</div> </div>
</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}"}> <.link navigate={~p"/books/#{@book.id}"}>
<%= if @book.cover_image_url != nil do %> <%= if @book.cover_image_url != nil do %>
<img class="w-36 mb-3 shadow-lg" src={@book.cover_image_url} alt={"#{@book.title} image"} /> <img class="w-36 mb-3 shadow-lg" src={@book.cover_image_url} alt={"#{@book.title} image"} />

Loading…
Cancel
Save