mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
Add alt tag to primary image
This commit is contained in:
parent
628b525f1a
commit
f0792e940b
@ -597,7 +597,9 @@ function renderPrimaryImage(page, item, apiClient) {
|
|||||||
tag: item.ImageTags.Primary
|
tag: item.ImageTags.Primary
|
||||||
});
|
});
|
||||||
|
|
||||||
page.querySelector('#primaryImage').src = imageUrl;
|
const imageElem = page.querySelector('#primaryImage');
|
||||||
|
imageElem.src = imageUrl;
|
||||||
|
imageElem.alt = item.Name;
|
||||||
page.querySelector('.primaryImageWrapper')?.classList.remove('hide');
|
page.querySelector('.primaryImageWrapper')?.classList.remove('hide');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user