From 3628b43e1a728305849fb53129485e49230ed7d8 Mon Sep 17 00:00:00 2001 From: Johan Frick Date: Sun, 10 Mar 2024 15:43:19 +0100 Subject: [PATCH] fix: missing padding when setting labelForTheAllVolumesSlider to empty --- src/sections/volumes.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/sections/volumes.ts b/src/sections/volumes.ts index ef8165bb..94c91a25 100755 --- a/src/sections/volumes.ts +++ b/src/sections/volumes.ts @@ -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; @@ -131,6 +127,7 @@ class Volumes extends LitElement { white-space: nowrap; font-size: 1.1rem; font-weight: bold; + min-height: 1rem; } .slider-row {