Update the layout for the BookSearch's dropdown menu.

dev
KKlochko 2 months ago
parent 523f017089
commit 0102b1c25a

@ -66,8 +66,8 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do
</button> </button>
<!-- Dropdown menu --> <!-- Dropdown menu -->
<div id="dropdownSearchBook" class="z-10 hidden text-base list-none bg-white rounded-lg shadow-sm w-64 dark:bg-gray-700 p-2 flex flex-col gap-2"> <div id="dropdownSearchBook" class="z-10 hidden text-base list-none bg-white rounded-lg shadow-sm w-64 dark:bg-gray-700 p-2 flex flex-col gap-2">
<div class="flex items-center w-full space-x-3 md:w-auto"> <div class="flex items-center space-x-3 md:w-auto">
<form phx-change="change-search-mode"> <form phx-change="change-search-mode" class="w-full">
<select name="search_mode" id="search_mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"> <select name="search_mode" id="search_mode" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<%= for {name, value} <- @search_mode_options do %> <%= for {name, value} <- @search_mode_options do %>
<%= if value == @search_mode do %> <%= if value == @search_mode do %>
@ -79,8 +79,8 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.BookSearch do
</select> </select>
</form> </form>
</div> </div>
<div class="flex items-center w-full space-x-3 md:w-auto"> <div class="flex items-center space-x-3 md:w-auto">
<form phx-change="change-sort"> <form phx-change="change-sort" class="w-full">
<select name="sort_by" id="sort_by" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"> <select name="sort_by" id="sort_by" class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500">
<%= for {name, value} <- @select_options do %> <%= for {name, value} <- @select_options do %>
<%= if value == @selected_option do %> <%= if value == @selected_option do %>

Loading…
Cancel
Save