Skip to content

Commit

Permalink
Merge pull request #1001 from MrBearPresident/Fix-for-Close-button-af…
Browse files Browse the repository at this point in the history
…ter-Volume-slider-in-Media-Card

Add check if sub-button-container exist and then set opacity
  • Loading branch information
Clooos authored Dec 6, 2024
2 parents ffe3777 + 5c23842 commit 95b5684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cards/media-player/changes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export function changeVolumeIcon(context) {
context.elements.volumeButton.setAttribute("icon", newIcon);
context.elements.mediaInfoContainer.style.opacity = newOpacity;
context.elements.nameContainer.style.opacity = newOpacity;
context.elements.subButtonContainer.style.opacity = newOpacity;
if(context.elements.subButtonContainer)context.elements.subButtonContainer.style.opacity = newOpacity;
context.elements.previousButton.style.opacity = newOpacity;
context.elements.nextButton.style.opacity = newOpacity;
context.elements.powerButton.style.opacity = newOpacity;
Expand Down Expand Up @@ -242,4 +242,4 @@ export function changeStyle(context) {
if (context.elements.customStyle) {
context.elements.customStyle.innerText = customStyle;
}
}
}

0 comments on commit 95b5684

Please sign in to comment.