Improve wording and layout of scrobbled tracks order buttons
This commit is contained in:
@@ -31,7 +31,7 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.Index do
|
|||||||
<.button_group>
|
<.button_group>
|
||||||
<.button
|
<.button
|
||||||
patch={order_path(@track_list_params, :scrobbled_at)}
|
patch={order_path(@track_list_params, :scrobbled_at)}
|
||||||
size="xs"
|
size="sm"
|
||||||
class={[
|
class={[
|
||||||
@track_list_params.order == :scrobbled_at && "bg-zinc-100! dark:bg-zinc-700!"
|
@track_list_params.order == :scrobbled_at && "bg-zinc-100! dark:bg-zinc-700!"
|
||||||
]}
|
]}
|
||||||
@@ -42,37 +42,37 @@ defmodule MusicLibraryWeb.ScrobbledTracksLive.Index do
|
|||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
data-slot="icon"
|
data-slot="icon"
|
||||||
/>
|
/>
|
||||||
{gettext("Scrobbled")}
|
<span class="sr-only sm:not-sr-only">{gettext("Timestamp")}</span>
|
||||||
</.button>
|
</.button>
|
||||||
<.button
|
<.button
|
||||||
patch={order_path(@track_list_params, :title)}
|
patch={order_path(@track_list_params, :title)}
|
||||||
size="xs"
|
size="sm"
|
||||||
class={[
|
class={[
|
||||||
@track_list_params.order == :title && "bg-zinc-100! dark:bg-zinc-700!"
|
@track_list_params.order == :title && "bg-zinc-100! dark:bg-zinc-700!"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<.icon name="hero-musical-note-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
<.icon name="hero-musical-note-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
{gettext("Title")}
|
<span class="sr-only sm:not-sr-only">{gettext("Title")}</span>
|
||||||
</.button>
|
</.button>
|
||||||
<.button
|
<.button
|
||||||
patch={order_path(@track_list_params, :artist)}
|
patch={order_path(@track_list_params, :artist)}
|
||||||
size="xs"
|
size="sm"
|
||||||
class={[
|
class={[
|
||||||
@track_list_params.order == :artist && "bg-zinc-100! dark:bg-zinc-700!"
|
@track_list_params.order == :artist && "bg-zinc-100! dark:bg-zinc-700!"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<.icon name="hero-user-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
<.icon name="hero-user-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
{gettext("Artist")}
|
<span class="sr-only sm:not-sr-only">{gettext("Artist")}</span>
|
||||||
</.button>
|
</.button>
|
||||||
<.button
|
<.button
|
||||||
patch={order_path(@track_list_params, :album)}
|
patch={order_path(@track_list_params, :album)}
|
||||||
size="xs"
|
size="sm"
|
||||||
class={[
|
class={[
|
||||||
@track_list_params.order == :album && "bg-zinc-100! dark:bg-zinc-700!"
|
@track_list_params.order == :album && "bg-zinc-100! dark:bg-zinc-700!"
|
||||||
]}
|
]}
|
||||||
>
|
>
|
||||||
<.icon name="hero-musical-note-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
<.icon name="hero-numbered-list-solid" class="icon" aria-hidden="true" data-slot="icon" />
|
||||||
{gettext("Album")}
|
<span class="sr-only sm:not-sr-only">{gettext("Album")}</span>
|
||||||
</.button>
|
</.button>
|
||||||
</.button_group>
|
</.button_group>
|
||||||
<.refresh_lastfm_feed_button />
|
<.refresh_lastfm_feed_button />
|
||||||
|
|||||||
@@ -1251,11 +1251,6 @@ msgstr ""
|
|||||||
msgid "No scrobbled tracks found"
|
msgid "No scrobbled tracks found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Scrobbled"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/app.html.heex
|
#: lib/music_library_web/components/layouts/app.html.heex
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
@@ -2291,3 +2286,8 @@ msgstr[1] ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Print tracklist"
|
msgid "Print tracklist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Timestamp"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
@@ -1251,11 +1251,6 @@ msgstr ""
|
|||||||
msgid "No scrobbled tracks found"
|
msgid "No scrobbled tracks found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
|
||||||
msgid "Scrobbled"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/music_library_web/components/layouts/app.html.heex
|
#: lib/music_library_web/components/layouts/app.html.heex
|
||||||
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
||||||
#, elixir-autogen, elixir-format, fuzzy
|
#, elixir-autogen, elixir-format, fuzzy
|
||||||
@@ -2291,3 +2286,8 @@ msgstr[1] ""
|
|||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Print tracklist"
|
msgid "Print tracklist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: lib/music_library_web/live/scrobbled_tracks_live/index.ex
|
||||||
|
#, elixir-autogen, elixir-format
|
||||||
|
msgid "Timestamp"
|
||||||
|
msgstr ""
|
||||||
|
|||||||
Reference in New Issue
Block a user