From 9efe2ebbeea6dbafd4ef83378330740acb07287d Mon Sep 17 00:00:00 2001 From: Ryan Kraus Date: Mon, 11 Jan 2016 21:19:01 -0500 Subject: [PATCH] Hide play button in media player if there is not media to control If the media player does not have media to control, the play/pause/stop, previous, and next buttons will be hidden. In order for the playback buttons to be shown, the status of the media player must be playing, paused, or unknown. This way, if the status is On, the playback buttons will be hidden. --- src/more-infos/more-info-media_player.html | 4 ++-- src/more-infos/more-info-media_player.js | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/more-infos/more-info-media_player.html b/src/more-infos/more-info-media_player.html index 776f520cd3..04edc7c8db 100644 --- a/src/more-infos/more-info-media_player.html +++ b/src/more-infos/more-info-media_player.html @@ -12,7 +12,7 @@ color: var(--accent-color); } - .volume .volume_buttons { + .volume { margin-bottom: 8px; max-height: 0px; @@ -33,7 +33,7 @@ hidden$='[[computeHidePowerButton(isOff, supportsTurnOn, supportsTurnOff)]]'>
-