From fc336abdc2a15173527cd89f4202133f7ded080e Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Wed, 9 Apr 2025 15:39:09 +0100 Subject: [PATCH] Improve artist page layout Move meta info at the bottom on mobile, use full-width --- lib/music_library_web/live/artist_live/show.html.heex | 11 +++++++---- priv/gettext/default.pot | 5 +++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/music_library_web/live/artist_live/show.html.heex b/lib/music_library_web/live/artist_live/show.html.heex index 2f1af4d6..55df7f55 100644 --- a/lib/music_library_web/live/artist_live/show.html.heex +++ b/lib/music_library_web/live/artist_live/show.html.heex @@ -58,8 +58,11 @@ -
-
+
+
+

+ {gettext("Meta")} +

<.async_result :let={artist_info} assign={@artist_info}> <:loading>
@@ -81,7 +84,7 @@ :if={artist_info.bio !== ""} class="text-sm leading-5 text-zinc-500 dark:text-zinc-400" > - {gettext("Biography")} + {gettext("Biography")} {render_bio(@artist_info.result.summary)} @@ -121,7 +124,7 @@
-
+
<.record_grid :if={@collection_records_count > 0} title={gettext("Collection")} diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 31b096cb..e2ea6c5e 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -727,3 +727,8 @@ msgstr "" #, elixir-autogen, elixir-format msgid "No scrobbles" msgstr "" + +#: lib/music_library_web/live/artist_live/show.html.heex +#, elixir-autogen, elixir-format +msgid "Meta" +msgstr ""