From 523f017089024c5f93afdd64ea76e13cca126a28 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Mon, 21 Apr 2025 15:07:51 +0300 Subject: [PATCH] Fix the broken layout for the BookSearch component. --- .../components/my_components/book_search.ex | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/decentralised_book_index_web/components/my_components/book_search.ex b/lib/decentralised_book_index_web/components/my_components/book_search.ex index 20a4ece..2f39288 100644 --- a/lib/decentralised_book_index_web/components/my_components/book_search.ex +++ b/lib/decentralised_book_index_web/components/my_components/book_search.ex @@ -14,8 +14,8 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do def book_search(assigns) do ~H""" -
-
+
+
@@ -29,10 +29,9 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do
-
<%= if @current_user != nil and Role.can_moderate?(@current_user.role) do %> - <.link patch={~p"/books/new"}> -
"""