From 2a393446a6750509cde9ae07c467a1517953c6b4 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Sat, 25 Jan 2025 18:18:17 +0000 Subject: [PATCH] Improve layout of artist section headers --- .../live/artist_live/record_components.ex | 15 ++++--- .../live/artist_live/show.html.heex | 20 +++++---- priv/gettext/default.pot | 42 ++++++++++--------- 3 files changed, 41 insertions(+), 36 deletions(-) diff --git a/lib/music_library_web/live/artist_live/record_components.ex b/lib/music_library_web/live/artist_live/record_components.ex index 9b837932..bb02c6d7 100644 --- a/lib/music_library_web/live/artist_live/record_components.ex +++ b/lib/music_library_web/live/artist_live/record_components.ex @@ -12,15 +12,14 @@ defmodule MusicLibraryWeb.ArtistLive.RecordComponents do def grid(assigns) do ~H"""
-

- {@title} - - - {gettext("Number of records")} - - <.round_badge text={@records_count} /> +
+

+ {@title} +

+ + {ngettext("1 record", "%{count} records", @records_count)} -

+ <%!-- TODO: replace with OSS version --%>