Use .button for scroll activity filters
This commit is contained in:
@@ -128,30 +128,24 @@
|
|||||||
</div>
|
</div>
|
||||||
<%!-- TODO: replace with OSS version --%>
|
<%!-- TODO: replace with OSS version --%>
|
||||||
<span class="mt-5 isolate inline-flex rounded-md shadow-xs">
|
<span class="mt-5 isolate inline-flex rounded-md shadow-xs">
|
||||||
<button
|
<.button
|
||||||
phx-click={JS.push("set_scrobble_activity_mode", value: %{"mode" => :albums})}
|
phx-click={JS.push("set_scrobble_activity_mode", value: %{"mode" => :albums})}
|
||||||
class={[
|
class={[
|
||||||
"relative inline-flex items-center rounded-l-md",
|
"rounded-l-md rounded-r-none",
|
||||||
"px-3 py-2 text-xs sm:text-sm font-semibold",
|
|
||||||
"ring-1 ring-inset focus:z-10",
|
|
||||||
"bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 ring-zinc-300",
|
|
||||||
@scrobble_activity_mode == :albums && "!bg-zinc-100 dark:!bg-zinc-700"
|
@scrobble_activity_mode == :albums && "!bg-zinc-100 dark:!bg-zinc-700"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{gettext("Albums")}
|
{gettext("Albums")}
|
||||||
</button>
|
</.button>
|
||||||
<button
|
<.button
|
||||||
phx-click={JS.push("set_scrobble_activity_mode", value: %{"mode" => :tracks})}
|
phx-click={JS.push("set_scrobble_activity_mode", value: %{"mode" => :tracks})}
|
||||||
class={[
|
class={[
|
||||||
"relative -ml-px inline-flex items-center rounded-r-md",
|
"-ml-px rounded-r-md rounded-l-none",
|
||||||
"px-3 py-2 text-xs sm:text-sm font-semibold",
|
|
||||||
"ring-1 ring-inset focus:z-10",
|
|
||||||
"bg-white dark:bg-zinc-900 text-zinc-900 dark:text-zinc-300 hover:bg-zinc-100 dark:hover:bg-zinc-700 ring-zinc-300",
|
|
||||||
@scrobble_activity_mode == :tracks && "!bg-zinc-100 dark:!bg-zinc-700"
|
@scrobble_activity_mode == :tracks && "!bg-zinc-100 dark:!bg-zinc-700"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
{gettext("Tracks")}
|
{gettext("Tracks")}
|
||||||
</button>
|
</.button>
|
||||||
</span>
|
</span>
|
||||||
<ul
|
<ul
|
||||||
:if={@scrobble_activity_mode == :albums}
|
:if={@scrobble_activity_mode == :albums}
|
||||||
|
|||||||
Reference in New Issue
Block a user