Fix more margins
This commit is contained in:
@@ -228,10 +228,11 @@ defmodule MusicLibraryWeb.RecordComponents do
|
|||||||
attr :record_edit_path, :any, required: true
|
attr :record_edit_path, :any, required: true
|
||||||
attr :display_artist_names, :boolean, default: false
|
attr :display_artist_names, :boolean, default: false
|
||||||
attr :density, :atom, values: [:low, :high], default: :low
|
attr :density, :atom, values: [:low, :high], default: :low
|
||||||
|
attr :container_class, :string, default: "mt-6"
|
||||||
|
|
||||||
def record_grid(assigns) do
|
def record_grid(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div class="mt-4">
|
<div class={@container_class}>
|
||||||
<header
|
<header
|
||||||
:if={@title}
|
:if={@title}
|
||||||
class="flex items-baseline justify-start"
|
class="flex items-baseline justify-start"
|
||||||
|
|||||||
@@ -397,6 +397,7 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
|||||||
records_count={@collection_records_count}
|
records_count={@collection_records_count}
|
||||||
record_show_path={fn record -> ~p"/collection/#{record}" end}
|
record_show_path={fn record -> ~p"/collection/#{record}" end}
|
||||||
record_edit_path={fn record -> ~p"/collection/#{record}/show/edit" end}
|
record_edit_path={fn record -> ~p"/collection/#{record}/show/edit" end}
|
||||||
|
container_class="mt-4"
|
||||||
/>
|
/>
|
||||||
<.separator
|
<.separator
|
||||||
:if={@collection_records_count > 0 && @wishlist_records_count > 0}
|
:if={@collection_records_count > 0 && @wishlist_records_count > 0}
|
||||||
@@ -410,6 +411,7 @@ defmodule MusicLibraryWeb.ArtistLive.Show do
|
|||||||
records_count={@wishlist_records_count}
|
records_count={@wishlist_records_count}
|
||||||
record_show_path={fn record -> ~p"/wishlist/#{record}" end}
|
record_show_path={fn record -> ~p"/wishlist/#{record}" end}
|
||||||
record_edit_path={fn record -> ~p"/wishlist/#{record}/show/edit" end}
|
record_edit_path={fn record -> ~p"/wishlist/#{record}/show/edit" end}
|
||||||
|
container_class="mt-4"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<.async_result :let={similar_artists} assign={@similar_artists}>
|
<.async_result :let={similar_artists} assign={@similar_artists}>
|
||||||
|
|||||||
Reference in New Issue
Block a user