1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Remove click action from item details primary image

This commit is contained in:
Bill Thornton 2023-10-15 02:02:51 -04:00
parent bfbdffdff5
commit 92ed674e7e
4 changed files with 76 additions and 25 deletions

View file

@ -261,7 +261,7 @@ function buildCardsHtmlInternal(items, options) {
* @param {string} shape - Shape of the desired image.
* @returns {CardImageUrl} Object representing the URL of the card's image.
*/
function getCardImageUrl(item, apiClient, options, shape) {
export function getCardImageUrl(item, apiClient, options, shape) {
item = item.ProgramInfo || item;
const width = options.width;
@ -1049,7 +1049,7 @@ function buildCard(index, item, apiClient, options) {
cardImageContainerOpen += getDefaultText(item, options);
}
const tagName = (layoutManager.tv) && !overlayButtons ? 'button' : 'div';
const tagName = layoutManager.tv && !overlayButtons ? 'button' : 'div';
const nameWithPrefix = (item.SortName || item.Name || '');
let prefix = nameWithPrefix.substring(0, Math.min(3, nameWithPrefix.length));