Improve header titles in editing overlay
This commit is contained in:
@@ -68,7 +68,6 @@
|
||||
<.live_component
|
||||
module={MusicLibraryWeb.RecordLive.FormComponent}
|
||||
id={@record.id}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
show_purchased_at={true}
|
||||
record={@record}
|
||||
|
||||
@@ -233,7 +233,6 @@
|
||||
<.live_component
|
||||
module={MusicLibraryWeb.RecordLive.FormComponent}
|
||||
id={@record.id}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
show_purchased_at={true}
|
||||
record={@record}
|
||||
|
||||
@@ -16,9 +16,12 @@ defmodule MusicLibraryWeb.RecordLive.FormComponent do
|
||||
~H"""
|
||||
<div>
|
||||
<header>
|
||||
<h1 class="text-base font-medium leading-6 text-zinc-700 dark:text-zinc-400">
|
||||
{@title}
|
||||
<h1 class="text-sm font-medium leading-6 text-zinc-700 dark:text-zinc-400">
|
||||
{Enum.map(@record.artists, & &1.name) |> Enum.join(", ")}
|
||||
</h1>
|
||||
<h2 class="text-base font-medium leading-6 text-zinc-700 dark:text-zinc-400">
|
||||
{@record.title}
|
||||
</h2>
|
||||
</header>
|
||||
|
||||
<.simple_form
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
<.live_component
|
||||
module={MusicLibraryWeb.RecordLive.FormComponent}
|
||||
id={@record.id}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
show_purchased_at={false}
|
||||
record={@record}
|
||||
|
||||
@@ -243,7 +243,6 @@
|
||||
<.live_component
|
||||
module={MusicLibraryWeb.RecordLive.FormComponent}
|
||||
id={@record.id}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
show_purchased_at={false}
|
||||
record={@record}
|
||||
|
||||
Reference in New Issue
Block a user