Fix position of scrobble search form

This commit is contained in:
Claudio Ortolina
2025-09-26 08:15:56 +03:00
parent 8e52d55983
commit ecb72d38e5
@@ -1,17 +1,13 @@
<Layouts.app flash={@flash} current_section={@current_section} socket={@socket}> <Layouts.app flash={@flash} current_section={@current_section} socket={@socket}>
<div> <div>
<div <header class="gap-6 mb-2">
:if={!@can_scrobble?} <div class="flex items-center justify-between gap-6 mb-2 mt-2">
class="bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4 mt-4" <.search_form query={@search_query} />
>
<.button :if={!@can_scrobble?} size="sm" href={LastFm.auth_url()}> <.button :if={!@can_scrobble?} size="sm" href={LastFm.auth_url()}>
{gettext("Connect your Last.fm account")} {gettext("Connect your Last.fm account")}
</.button> </.button>
</div> </div>
</header>
<div class="mt-6 space-y-6">
<.search_form query={@search_query} />
<%= if @search_results != [] && @selected_release_group == nil do %> <%= if @search_results != [] && @selected_release_group == nil do %>
<div class="space-y-3"> <div class="space-y-3">
<h3 class="text-lg font-semibold">{gettext("Release Groups")}</h3> <h3 class="text-lg font-semibold">{gettext("Release Groups")}</h3>
@@ -142,5 +138,4 @@
</div> </div>
<% end %> <% end %>
</div> </div>
</div>
</Layouts.app> </Layouts.app>