Skip to content

Commit

Permalink
fix: missing padding when setting labelForTheAllVolumesSlider to empty
Browse files Browse the repository at this point in the history
  • Loading branch information
punxaphil committed Mar 10, 2024
1 parent 605ce1a commit 3628b43
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/sections/volumes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ class Volumes extends LitElement {
}

private volumeWithName(player: MediaPlayer, updateMembers = true) {
const name = updateMembers
? this.config.labelForTheAllVolumesSlider
? this.config.labelForTheAllVolumesSlider
: 'All'
: player.name;
const name = updateMembers ? this.config.labelForTheAllVolumesSlider ?? 'All' : player.name;
const volDown = async () => await this.mediaControlService.volumeDown(player, updateMembers);
const volUp = async () => await this.mediaControlService.volumeUp(player, updateMembers);
const noUpDown = !!this.config.showVolumeUpAndDownButtons && nothing;
Expand Down Expand Up @@ -131,6 +127,7 @@ class Volumes extends LitElement {
white-space: nowrap;
font-size: 1.1rem;
font-weight: bold;
min-height: 1rem;
}
.slider-row {
Expand Down

0 comments on commit 3628b43

Please sign in to comment.