Display online stores favicon URLs via Google API

This commit is contained in:
Claudio Ortolina
2025-07-15 15:58:46 +01:00
parent 4add3859fd
commit 27e9f565e4
3 changed files with 18 additions and 2 deletions
@@ -29,7 +29,12 @@
class="flex items-center justify-between py-5"
>
<div class="min-w-0">
<div class="flex items-start gap-x-3">
<div class="flex items-center gap-x-2">
<img
src={MusicLibrary.OnlineStoreTemplates.favicon_url(template)}
alt={template.name}
loading="lazy"
/>
<p class="text-sm font-semibold text-gray-900 dark:text-white">
{template.name}
</p>
@@ -281,7 +281,13 @@
:for={template <- @online_store_templates}
class="flex items-center justify-between py-2 px-3 bg-gray-50 dark:bg-gray-800 rounded-lg"
>
<span class="text-sm font-medium text-gray-900 dark:text-white">
<img
class="mr-2"
src={MusicLibrary.OnlineStoreTemplates.favicon_url(template)}
alt={template.name}
loading="lazy"
/>
<span class="text-sm font-medium text-gray-900 dark:text-white grow">
{template.name}
</span>
<.button