Re-enable medium header + checkbox for releases with 1 medium
This commit is contained in:
@@ -285,10 +285,7 @@ defmodule MusicLibraryWeb.Components.Release do
|
|||||||
|
|
||||||
def medium(assigns) do
|
def medium(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<div
|
<div class="flex items-center justify-between gap-3">
|
||||||
:if={@media_count > 1}
|
|
||||||
class="flex items-center justify-between gap-3"
|
|
||||||
>
|
|
||||||
<label class="md:text-md flex min-w-0 cursor-pointer items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-300">
|
<label class="md:text-md flex min-w-0 cursor-pointer items-center gap-2 text-sm font-semibold text-zinc-700 dark:text-zinc-300">
|
||||||
<input
|
<input
|
||||||
:if={@can_scrobble?}
|
:if={@can_scrobble?}
|
||||||
@@ -304,7 +301,10 @@ defmodule MusicLibraryWeb.Components.Release do
|
|||||||
{@medium.format}
|
{@medium.format}
|
||||||
</.badge>
|
</.badge>
|
||||||
</label>
|
</label>
|
||||||
<div class="flex items-center gap-2">
|
<div
|
||||||
|
:if={@media_count > 1}
|
||||||
|
class="flex items-center gap-2"
|
||||||
|
>
|
||||||
<.button
|
<.button
|
||||||
:if={@can_scrobble?}
|
:if={@can_scrobble?}
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in New Issue
Block a user