Simplify record sets page structure (no title, better margins)
This commit is contained in:
@@ -1,26 +1,18 @@
|
|||||||
<Layouts.app flash={@flash} current_section={@current_section} socket={@socket}>
|
<Layouts.app flash={@flash} current_section={@current_section} socket={@socket}>
|
||||||
<header class="mb-6">
|
<header class="mb-6">
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between gap-6 mb-2 mt-2">
|
||||||
<div>
|
<.search_form query={@list_params.query} />
|
||||||
<h1 class="text-2xl font-bold text-zinc-900 dark:text-zinc-100">
|
<.button
|
||||||
{gettext("Record Sets")}
|
variant="solid"
|
||||||
</h1>
|
size="sm"
|
||||||
</div>
|
patch={~p"/record-sets/new"}
|
||||||
<div>
|
>
|
||||||
<.button
|
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
variant="solid"
|
{gettext("New Set")}
|
||||||
size="sm"
|
</.button>
|
||||||
patch={~p"/record-sets/new"}
|
|
||||||
>
|
|
||||||
<.icon name="hero-plus" class="icon" aria-hidden="true" data-slot="icon" />
|
|
||||||
{gettext("New Set")}
|
|
||||||
</.button>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<.search_form query={@list_params.query} />
|
|
||||||
|
|
||||||
<div class="flex items-end justify-between gap-6 mt-4">
|
<div class="flex items-end justify-between gap-6 mt-4">
|
||||||
<.button_group>
|
<.button_group>
|
||||||
<.button
|
<.button
|
||||||
|
|||||||
@@ -1745,7 +1745,6 @@ msgid "No records found"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_set_live/index.ex
|
#: lib/music_library_web/live/record_set_live/index.ex
|
||||||
#: lib/music_library_web/live/record_set_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Record Sets"
|
msgid "Record Sets"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -1745,7 +1745,6 @@ msgid "No records found"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_set_live/index.ex
|
#: lib/music_library_web/live/record_set_live/index.ex
|
||||||
#: lib/music_library_web/live/record_set_live/index.html.heex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
msgid "Record Sets"
|
msgid "Record Sets"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ defmodule MusicLibraryWeb.RecordSetLive.IndexTest do
|
|||||||
|
|
||||||
conn
|
conn
|
||||||
|> visit(~p"/record-sets")
|
|> visit(~p"/record-sets")
|
||||||
|> assert_has("h1", text: "Record Sets")
|
|
||||||
|> assert_has("h2", text: "My Favorites")
|
|> assert_has("h2", text: "My Favorites")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user