From 750dae431bd60af6ee805a8c9e166569b66a0cbe Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Fri, 25 Oct 2024 23:20:13 +0100 Subject: [PATCH] Redesign import dialog --- .../components/core_components.ex | 2 +- .../live/record_live/import_component.ex | 32 +++++++++++-------- priv/gettext/default.pot | 8 ++--- .../live/record_index_test.exs | 2 +- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/lib/music_library_web/components/core_components.ex b/lib/music_library_web/components/core_components.ex index ac5c3c55..7c67f050 100644 --- a/lib/music_library_web/components/core_components.ex +++ b/lib/music_library_web/components/core_components.ex @@ -74,7 +74,7 @@ defmodule MusicLibraryWeb.CoreComponents do "shadow-zinc-700/10 ring-zinc-700/10", "relative hidden rounded-2xl", "bg-white dark:bg-zinc-800", - "p-14 shadow-lg ring-1 transition" + "p-8 shadow-lg ring-1 transition" ]} >
diff --git a/lib/music_library_web/live/record_live/import_component.ex b/lib/music_library_web/live/record_live/import_component.ex index 5c348486..cf501010 100644 --- a/lib/music_library_web/live/record_live/import_component.ex +++ b/lib/music_library_web/live/record_live/import_component.ex @@ -13,6 +13,7 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do phx-target={@myself} phx-change="search" phx-submit="search" + class="px-4" > <.input id={:mb_query} @@ -24,7 +25,11 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do phx-debounce="500" /> -