Limit artwork sizes and remove duplicate IDs

This commit is contained in:
Claudio Ortolina
2024-11-19 18:31:46 +00:00
parent eee70b0999
commit 47a20d259e
4 changed files with 35 additions and 45 deletions
@@ -1,7 +1,7 @@
<div class="md:columns-2 mt-4 px-4"> <div class="md:columns-2 mt-4 px-4">
<div class="drop-shadow"> <div class="drop-shadow max-w-3xl">
<img <img
class="w-full rounded-lg shadow" class="w-full rounded-lg drop-shadow"
src={~p"/covers/#{@record.id}?vsn=#{@record.cover_hash || ""}"} src={~p"/covers/#{@record.id}?vsn=#{@record.cover_hash || ""}"}
alt={@record.title} alt={@record.title}
/> />
@@ -36,7 +36,6 @@
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none"> <.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<span class="sr-only"><%= gettext("Refresh") %></span> <span class="sr-only"><%= gettext("Refresh") %></span>
<.icon <.icon
id="refresh-lastfm-feed"
name="hero-arrow-path" name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin" class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true" aria-hidden="true"
@@ -49,7 +48,6 @@
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none"> <.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<span class="sr-only"><%= gettext("Refresh") %></span> <span class="sr-only"><%= gettext("Refresh") %></span>
<.icon <.icon
id="refresh-lastfm-feed"
name="hero-arrow-path" name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin" class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true" aria-hidden="true"
@@ -72,13 +72,7 @@
phx-click={JS.push("refresh_lastfm_feed")} phx-click={JS.push("refresh_lastfm_feed")}
> >
<span class="sr-only"><%= gettext("Refresh LastFm Feed") %></span> <span class="sr-only"><%= gettext("Refresh LastFm Feed") %></span>
<.icon <.icon name="hero-arrow-path" class="-mt-1 h-5 w-5" aria-hidden="true" data-slot="icon" />
id="refresh-lastfm-feed"
name="hero-arrow-path"
class="-mt-1 h-5 w-5"
aria-hidden="true"
data-slot="icon"
/>
</button> </button>
</div> </div>
<ul <ul
@@ -1,7 +1,7 @@
<div class="md:columns-2 mt-4 px-4"> <div class="md:columns-2 mt-4 px-4">
<div class="drop-shadow"> <div class="drop-shadow max-w-3xl">
<img <img
class="w-full rounded-lg shadow" class="w-full rounded-lg drop-shadow"
src={~p"/covers/#{@record.id}?vsn=#{@record.cover_hash || ""}"} src={~p"/covers/#{@record.id}?vsn=#{@record.cover_hash || ""}"}
alt={@record.title} alt={@record.title}
/> />
@@ -36,7 +36,6 @@
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none"> <.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<span class="sr-only"><%= gettext("Refresh") %></span> <span class="sr-only"><%= gettext("Refresh") %></span>
<.icon <.icon
id="refresh-lastfm-feed"
name="hero-arrow-path" name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin" class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true" aria-hidden="true"
@@ -49,7 +48,6 @@
<.button type="button" class="relative -ml-px inline-flex items-center rounded-none"> <.button type="button" class="relative -ml-px inline-flex items-center rounded-none">
<span class="sr-only"><%= gettext("Refresh") %></span> <span class="sr-only"><%= gettext("Refresh") %></span>
<.icon <.icon
id="refresh-lastfm-feed"
name="hero-arrow-path" name="hero-arrow-path"
class="h-4 w-4 mr-1 phx-click-loading:animate-spin" class="h-4 w-4 mr-1 phx-click-loading:animate-spin"
aria-hidden="true" aria-hidden="true"
+30 -30
View File
@@ -17,9 +17,9 @@ msgid "Actions"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:185 #: lib/music_library_web/live/record_live/index.html.heex:185
#: lib/music_library_web/live/record_live/show.html.heex:63 #: lib/music_library_web/live/record_live/show.html.heex:61
#: lib/music_library_web/live/wishlist_live/index.html.heex:195 #: lib/music_library_web/live/wishlist_live/index.html.heex:195
#: lib/music_library_web/live/wishlist_live/show.html.heex:63 #: lib/music_library_web/live/wishlist_live/show.html.heex:61
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Are you sure?" msgid "Are you sure?"
msgstr "" msgstr ""
@@ -29,12 +29,12 @@ msgstr ""
msgid "Attempting to reconnect" msgid "Attempting to reconnect"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:156 #: lib/music_library_web/live/record_live/show.html.heex:154
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Back to records" msgid "Back to records"
msgstr "" msgstr ""
#: lib/music_library_web/live/wishlist_live/show.html.heex:149 #: lib/music_library_web/live/wishlist_live/show.html.heex:147
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Back to wishlist" msgid "Back to wishlist"
msgstr "" msgstr ""
@@ -62,9 +62,9 @@ msgid "Cover art"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:187 #: lib/music_library_web/live/record_live/index.html.heex:187
#: lib/music_library_web/live/record_live/show.html.heex:69 #: lib/music_library_web/live/record_live/show.html.heex:67
#: lib/music_library_web/live/wishlist_live/index.html.heex:197 #: lib/music_library_web/live/wishlist_live/index.html.heex:197
#: lib/music_library_web/live/wishlist_live/show.html.heex:69 #: lib/music_library_web/live/wishlist_live/show.html.heex:67
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Delete" msgid "Delete"
msgstr "" msgstr ""
@@ -105,8 +105,8 @@ msgstr ""
msgid "Formats" msgid "Formats"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:78 #: lib/music_library_web/live/record_live/show.html.heex:76
#: lib/music_library_web/live/wishlist_live/show.html.heex:79 #: lib/music_library_web/live/wishlist_live/show.html.heex:77
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Genres" msgid "Genres"
msgstr "" msgstr ""
@@ -128,8 +128,8 @@ msgstr ""
msgid "Import from MusicBrainz" msgid "Import from MusicBrainz"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:131 #: lib/music_library_web/live/record_live/show.html.heex:129
#: lib/music_library_web/live/wishlist_live/show.html.heex:124 #: lib/music_library_web/live/wishlist_live/show.html.heex:122
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Inserted at" msgid "Inserted at"
msgstr "" msgstr ""
@@ -155,8 +155,8 @@ msgid "Logout"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/form_component.ex:46 #: lib/music_library_web/live/record_live/form_component.ex:46
#: lib/music_library_web/live/record_live/show.html.heex:86 #: lib/music_library_web/live/record_live/show.html.heex:84
#: lib/music_library_web/live/wishlist_live/show.html.heex:87 #: lib/music_library_web/live/wishlist_live/show.html.heex:85
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MusicBrainz ID" msgid "MusicBrainz ID"
msgstr "" msgstr ""
@@ -178,7 +178,7 @@ msgid "No results"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/index.html.heex:121 #: lib/music_library_web/live/record_live/index.html.heex:121
#: lib/music_library_web/live/stats_live/index.html.heex:161 #: lib/music_library_web/live/stats_live/index.html.heex:155
#: lib/music_library_web/live/wishlist_live/index.html.heex:121 #: lib/music_library_web/live/wishlist_live/index.html.heex:121
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Open options" msgid "Open options"
@@ -205,7 +205,7 @@ msgstr ""
msgid "Purchased at" msgid "Purchased at"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:108 #: lib/music_library_web/live/record_live/show.html.heex:106
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Purchased on" msgid "Purchased on"
msgstr "" msgstr ""
@@ -312,8 +312,8 @@ msgstr ""
msgid "Types" msgid "Types"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:139 #: lib/music_library_web/live/record_live/show.html.heex:137
#: lib/music_library_web/live/wishlist_live/show.html.heex:132 #: lib/music_library_web/live/wishlist_live/show.html.heex:130
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Updated at" msgid "Updated at"
msgstr "" msgstr ""
@@ -351,14 +351,14 @@ msgstr ""
msgid "close" msgid "close"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:96 #: lib/music_library_web/live/record_live/show.html.heex:94
#: lib/music_library_web/live/wishlist_live/show.html.heex:97 #: lib/music_library_web/live/wishlist_live/show.html.heex:95
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Copy MusicBrainz ID to clipboard" msgid "Copy MusicBrainz ID to clipboard"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:150 #: lib/music_library_web/live/record_live/show.html.heex:148
#: lib/music_library_web/live/wishlist_live/show.html.heex:143 #: lib/music_library_web/live/wishlist_live/show.html.heex:141
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MusicBrainz data" msgid "MusicBrainz data"
msgstr "" msgstr ""
@@ -373,12 +373,12 @@ msgstr ""
msgid "Choose which format to import" msgid "Choose which format to import"
msgstr "" msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:130 #: lib/music_library_web/live/stats_live/index.html.heex:124
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Collected" msgid "Collected"
msgstr "" msgstr ""
#: lib/music_library_web/live/stats_live/index.html.heex:143 #: lib/music_library_web/live/stats_live/index.html.heex:137
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Wishlisted" msgid "Wishlisted"
msgstr "" msgstr ""
@@ -391,8 +391,8 @@ msgstr ""
msgid "Number of included records" msgid "Number of included records"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:119 #: lib/music_library_web/live/record_live/show.html.heex:117
#: lib/music_library_web/live/wishlist_live/show.html.heex:112 #: lib/music_library_web/live/wishlist_live/show.html.heex:110
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Includes" msgid "Includes"
msgstr "" msgstr ""
@@ -422,22 +422,22 @@ msgstr ""
msgid "Cover refreshed successfully" msgid "Cover refreshed successfully"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:45 #: lib/music_library_web/live/record_live/show.html.heex:44
#: lib/music_library_web/live/wishlist_live/show.html.heex:45 #: lib/music_library_web/live/wishlist_live/show.html.heex:44
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Cover" msgid "Cover"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:58 #: lib/music_library_web/live/record_live/show.html.heex:56
#: lib/music_library_web/live/wishlist_live/show.html.heex:58 #: lib/music_library_web/live/wishlist_live/show.html.heex:56
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "MB Data" msgid "MB Data"
msgstr "" msgstr ""
#: lib/music_library_web/live/record_live/show.html.heex:37 #: lib/music_library_web/live/record_live/show.html.heex:37
#: lib/music_library_web/live/record_live/show.html.heex:50 #: lib/music_library_web/live/record_live/show.html.heex:49
#: lib/music_library_web/live/wishlist_live/show.html.heex:37 #: lib/music_library_web/live/wishlist_live/show.html.heex:37
#: lib/music_library_web/live/wishlist_live/show.html.heex:50 #: lib/music_library_web/live/wishlist_live/show.html.heex:49
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""