Skip to content

Commit 05d22cc

Browse files
committed
fix: list image alt
1 parent 0ed70a4 commit 05d22cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/media_server_web/components/list_posters_component.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defmodule MediaServerWeb.Components.ListPostersComponent do
1010
<div class="group aspect-h-7 aspect-w-10 block w-full overflow-hidden rounded-lg bg-gray-100 focus-within:ring-2 focus-within:ring-indigo-500 focus-within:ring-offset-2 focus-within:ring-offset-gray-100">
1111
<img
1212
src={"/api/images?url=#{Map.get(item, @image)}&type=proxy&token=#{@token}"}
13-
alt=""
13+
alt={"#{Map.get(item, :name, Map.get(item, :title))}"}
1414
class="pointer-events-none object-cover group-hover:opacity-75"
1515
/>
1616
</div>

0 commit comments

Comments
 (0)