From e553764175b1c817af28d0db412f87b6db7c83aa Mon Sep 17 00:00:00 2001 From: HighImKevin Date: Sun, 23 Nov 2025 10:39:28 -0500 Subject: [PATCH] Fix issue with logo not being applied to the Plugin card --- kefinTweaks-plugin.js | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/kefinTweaks-plugin.js b/kefinTweaks-plugin.js index 5f9f047..03f7539 100644 --- a/kefinTweaks-plugin.js +++ b/kefinTweaks-plugin.js @@ -479,7 +479,7 @@ window.KefinTweaksConfig = ${JSON.stringify(config, null, 2)};`; // Initial installation message with support information content.innerHTML = `

Thanks for installing KefinTweaks.

-

KefinTweaks is not maintained by the Jellyfin team, and as a result you are encouraged to seek support from me directly. Sadly, there is no place suitable for discussion of plugins built by community members or fan-made projects in the official Jellyfin Discord, so please visit the Jellyfin Community Discord to find me (username: HighImKevin) and other users who would be happy to help you out. Please also feel free to report bugs and request features from the Issues page. The strength of this plugin relies on awesome community members like you, so thanks for using KefinTweaks!

+

KefinTweaks is not maintained by the Jellyfin team, and as a result you are encouraged to seek support from me directly. Sadly, there is no place suitable for discussion of plugins built by community members or fan-made projects in the official Jellyfin Discord, so please visit the Jellyfin Community Discord to find me (username: HighImKevin) and other users who would be happy to help you out. Please also feel free to report bugs and request features from the Issues page. The strength of this plugin relies on awesome community members like you, so thanks for using KefinTweaks!

`; } else { // Update message with refresh instruction @@ -1101,20 +1101,6 @@ window.KefinTweaksConfig = ${JSON.stringify(config, null, 2)};`; } } -/* if (img) { - const iconDiv = document.createElement('div'); - iconDiv.className = 'cardImage flex align-items-center justify-content-center defaultCardBackground defaultCardBackground5'; - - const iconSpan = document.createElement('span'); - iconSpan.className = 'cardImageIcon material-icons extension'; - iconSpan.setAttribute('aria-hidden', 'true'); - - iconDiv.appendChild(iconSpan); - - // Replace the img with the icon div - img.parentNode.replaceChild(iconDiv, img); - } */ - // Find and replace the anchor/link with a button that opens the modal // For Material-UI cards, the anchor might be structured differently let anchorElement = null; @@ -1202,7 +1188,7 @@ window.KefinTweaksConfig = ${JSON.stringify(config, null, 2)};`; img.style.display = 'flex'; } - const defaultCardBackground = card.querySelector('.defaultCardBackground'); + let defaultCardBackground = card.querySelector('.defaultCardBackground') ?? card.querySelector('.MuiCardMedia-root'); if (img && defaultCardBackground) { // Replace the defaultCardBackground with the img