From 488b610aed612fb279fb3ebb6066a1ce4e7ab52e Mon Sep 17 00:00:00 2001 From: KKlochko Date: Tue, 1 Apr 2025 17:51:38 +0300 Subject: [PATCH] Update the card component to center their text. --- .../components/my_components/author_card.ex | 2 +- .../components/my_components/book_card.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/decentralised_book_index_web/components/my_components/author_card.ex b/lib/decentralised_book_index_web/components/my_components/author_card.ex index 0774e8c..0142273 100644 --- a/lib/decentralised_book_index_web/components/my_components/author_card.ex +++ b/lib/decentralised_book_index_web/components/my_components/author_card.ex @@ -31,7 +31,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do -
+
<.link navigate={~p"/authors/#{@author.id}"}> <%= if @author.avatar_url != nil do %> {"#{@author.name} diff --git a/lib/decentralised_book_index_web/components/my_components/book_card.ex b/lib/decentralised_book_index_web/components/my_components/book_card.ex index 3c06ca5..ff73bb5 100644 --- a/lib/decentralised_book_index_web/components/my_components/book_card.ex +++ b/lib/decentralised_book_index_web/components/my_components/book_card.ex @@ -31,7 +31,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookCard do
-
+
<.link navigate={~p"/books/#{@book.id}"}> <%= if @book.cover_image_url != nil do %> {"#{@book.title}