Improve selected options formatting
This commit is contained in:
@@ -27,7 +27,7 @@ defmodule MusicLibraryWeb.SearchComponents do
|
|||||||
class={[
|
class={[
|
||||||
"p-3 rounded-lg cursor-pointer transition-colors",
|
"p-3 rounded-lg cursor-pointer transition-colors",
|
||||||
"hover:bg-zinc-50 dark:hover:bg-zinc-700",
|
"hover:bg-zinc-50 dark:hover:bg-zinc-700",
|
||||||
"aria-selected:bg-zinc-200 dark:aria-selected:bg-zinc-500"
|
"aria-selected:bg-zinc-200 dark:aria-selected:bg-zinc-700"
|
||||||
]}
|
]}
|
||||||
role="option"
|
role="option"
|
||||||
{@rest}
|
{@rest}
|
||||||
@@ -75,7 +75,7 @@ defmodule MusicLibraryWeb.SearchComponents do
|
|||||||
class={[
|
class={[
|
||||||
"p-3 rounded-lg cursor-pointer transition-colors",
|
"p-3 rounded-lg cursor-pointer transition-colors",
|
||||||
"hover:bg-zinc-50 dark:hover:bg-zinc-700",
|
"hover:bg-zinc-50 dark:hover:bg-zinc-700",
|
||||||
"aria-selected:bg-zinc-200 dark:aria-selected:bg-zinc-500"
|
"aria-selected:bg-zinc-200 dark:aria-selected:bg-zinc-700"
|
||||||
]}
|
]}
|
||||||
role="option"
|
role="option"
|
||||||
{@rest}
|
{@rest}
|
||||||
@@ -139,7 +139,7 @@ defmodule MusicLibraryWeb.SearchComponents do
|
|||||||
{render_slot(@inner_block)}
|
{render_slot(@inner_block)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div :for={action <- @actions} class="mt-3">
|
<div :for={action <- @actions} class="px-2 mt-3">
|
||||||
{render_slot(action)}
|
{render_slot(action)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -160,7 +160,8 @@ defmodule MusicLibraryWeb.SearchComponents do
|
|||||||
def view_all_button(assigns) do
|
def view_all_button(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<button
|
<button
|
||||||
class="text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors"
|
role="option"
|
||||||
|
class="aria-selected:bg-zinc-200 dark:aria-selected:bg-zinc-700 text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 transition-colors"
|
||||||
{@rest}
|
{@rest}
|
||||||
>
|
>
|
||||||
{gettext("View all %{count} %{target} results →", count: @count, target: @target)}
|
{gettext("View all %{count} %{target} results →", count: @count, target: @target)}
|
||||||
|
|||||||
Reference in New Issue
Block a user