From 4cbdf6b2b2348a545909d72b985dc7b613106749 Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Mon, 28 Oct 2024 11:19:30 +0000 Subject: [PATCH] Improve formatting of stats - Simple markup - Better spacing at alignment on all viewports --- .../controllers/stats_html/index.html.heex | 40 +++++++++---------- priv/gettext/default.pot | 2 +- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/lib/music_library_web/controllers/stats_html/index.html.heex b/lib/music_library_web/controllers/stats_html/index.html.heex index fe4c4359..6c078bd9 100644 --- a/lib/music_library_web/controllers/stats_html/index.html.heex +++ b/lib/music_library_web/controllers/stats_html/index.html.heex @@ -70,19 +70,17 @@ <%= gettext("Formats") %>
-
-
+
+
<%= Record.format_long_label(format) %>
-
- +
+ + <%= count %> +
@@ -93,19 +91,17 @@ <%= gettext("Types") %>
-
-
+
+
<%= Record.type_long_label(type) %>
-
- +
+ + <%= count %> +
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 3fc0b988..39024ebf 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -330,7 +330,7 @@ msgstr "" msgid "Formats" msgstr "" -#: lib/music_library_web/controllers/stats_html/index.html.heex:93 +#: lib/music_library_web/controllers/stats_html/index.html.heex:91 #, elixir-autogen, elixir-format msgid "Types" msgstr ""