1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Music album art aspect ratio set to 1:1 (#146)

* Music album art aspect ratio set to 1:1

* Javascript sillyness.
This commit is contained in:
Bjarni Ivarsson
2016-10-26 21:18:39 +02:00
committed by Paulus Schoutsen
parent 8ba1632edf
commit 898a8acdc0

8
src/cards/ha-media_player-card.html Normal file → Executable file
View File

@@ -38,6 +38,10 @@
transition: padding-top .8s;
}
.banner.content-type-music:before {
padding-top: 100%;
}
.banner.no-cover:before {
padding-top: 91px;
}
@@ -235,6 +239,10 @@ Polymer({
cls += ' no-cover';
}
if (playerObj.stateObj.attributes.media_content_type === 'music') {
cls += ' content-type-music';
}
return cls;
},