Shorten counter titles in stats

This commit is contained in:
Claudio Ortolina
2025-09-02 12:36:22 +03:00
parent ad335961f8
commit 3316df1861
3 changed files with 10 additions and 26 deletions
@@ -10,13 +10,13 @@
class="col-span-3 sm:col-span-2" class="col-span-3 sm:col-span-2"
/> />
<.counter <.counter
title={gettext("Total collection")} title={gettext("Collection")}
count={@collection_count} count={@collection_count}
path={~p"/collection"} path={~p"/collection"}
/> />
<.counter title={gettext("Total wishlist")} count={@wishlist_count} path={~p"/wishlist"} /> <.counter title={gettext("Wishlist")} count={@wishlist_count} path={~p"/wishlist"} />
<.counter <.counter
title={gettext("Total scrobbles")} title={gettext("Scrobbles")}
count={to_compact(@scrobble_count)} count={to_compact(@scrobble_count)}
tooltip={@scrobble_count} tooltip={@scrobble_count}
/> />
+3 -11
View File
@@ -24,6 +24,7 @@ msgstr ""
#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/artist_live/show.html.heex
#: lib/music_library_web/live/collection_live/index.ex #: lib/music_library_web/live/collection_live/index.ex
#: lib/music_library_web/live/collection_live/show.ex #: lib/music_library_web/live/collection_live/show.ex
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Collection" msgid "Collection"
msgstr "" msgstr ""
@@ -195,16 +196,6 @@ msgstr ""
msgid "The application has been updated, please reload." msgid "The application has been updated, please reload."
msgstr "" msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format
msgid "Total collection"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format
msgid "Total wishlist"
msgstr ""
#: lib/music_library_web/components/record_form_component.ex #: lib/music_library_web/components/record_form_component.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Type" msgid "Type"
@@ -228,6 +219,7 @@ msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/components/layouts/app.html.heex
#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/artist_live/show.html.heex
#: lib/music_library_web/live/stats_live/index.html.heex
#: lib/music_library_web/live/wishlist_live/index.ex #: lib/music_library_web/live/wishlist_live/index.ex
#: lib/music_library_web/live/wishlist_live/show.ex #: lib/music_library_web/live/wishlist_live/show.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -1311,5 +1303,5 @@ msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex #: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Total scrobbles" msgid "Scrobbles"
msgstr "" msgstr ""
+4 -12
View File
@@ -24,6 +24,7 @@ msgstr ""
#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/artist_live/show.html.heex
#: lib/music_library_web/live/collection_live/index.ex #: lib/music_library_web/live/collection_live/index.ex
#: lib/music_library_web/live/collection_live/show.ex #: lib/music_library_web/live/collection_live/show.ex
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Collection" msgid "Collection"
msgstr "" msgstr ""
@@ -195,16 +196,6 @@ msgstr ""
msgid "The application has been updated, please reload." msgid "The application has been updated, please reload."
msgstr "" msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format
msgid "Total collection"
msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format
msgid "Total wishlist"
msgstr ""
#: lib/music_library_web/components/record_form_component.ex #: lib/music_library_web/components/record_form_component.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Type" msgid "Type"
@@ -228,6 +219,7 @@ msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/components/layouts/app.html.heex
#: lib/music_library_web/live/artist_live/show.html.heex #: lib/music_library_web/live/artist_live/show.html.heex
#: lib/music_library_web/live/stats_live/index.html.heex
#: lib/music_library_web/live/wishlist_live/index.ex #: lib/music_library_web/live/wishlist_live/index.ex
#: lib/music_library_web/live/wishlist_live/show.ex #: lib/music_library_web/live/wishlist_live/show.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
@@ -1310,6 +1302,6 @@ msgid "Search (Cmd/Ctrl+K)"
msgstr "" msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex #: lib/music_library_web/live/stats_live/index.html.heex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format, fuzzy
msgid "Total scrobbles" msgid "Scrobbles"
msgstr "" msgstr ""