File tree 1 file changed +5
-1
lines changed
lib/plexus_web/components
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ defmodule PlexusWeb.CoreComponents do
18
18
use Gettext , backend: PlexusWeb.Gettext
19
19
20
20
alias Phoenix.LiveView.JS
21
+ alias Plexus.Schemas.App
21
22
alias Plexus.Schemas.Score
22
23
23
24
@ doc """
@@ -627,6 +628,9 @@ defmodule PlexusWeb.CoreComponents do
627
628
"""
628
629
end
629
630
631
+ defp icon_url ( % App { icon_url: url = "https://play-lh" <> _ } ) , do: url <> "=w96-h96"
632
+ defp icon_url ( % App { icon_url: url } ) , do: url
633
+
630
634
def card ( assigns ) do
631
635
assigns =
632
636
assigns
@@ -641,7 +645,7 @@ defmodule PlexusWeb.CoreComponents do
641
645
< div class = "flex " >
642
646
< div class = "aspect-h-1 aspect-w-1 w-24 h-24 bg-white overflow-hidden " >
643
647
< img
644
- src = { @ app . icon_url }
648
+ src = { icon_url ( @ app ) }
645
649
alt = { @ app . name <> " Icon" }
646
650
class = "h-full w-full object-cover object-center "
647
651
/>
You can’t perform that action at this time.
0 commit comments