mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +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:
parent
8ba1632edf
commit
898a8acdc0
8
src/cards/ha-media_player-card.html
Normal file → Executable file
8
src/cards/ha-media_player-card.html
Normal file → Executable file
@ -38,6 +38,10 @@
|
|||||||
transition: padding-top .8s;
|
transition: padding-top .8s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.banner.content-type-music:before {
|
||||||
|
padding-top: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.banner.no-cover:before {
|
.banner.no-cover:before {
|
||||||
padding-top: 91px;
|
padding-top: 91px;
|
||||||
}
|
}
|
||||||
@ -235,6 +239,10 @@ Polymer({
|
|||||||
cls += ' no-cover';
|
cls += ' no-cover';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (playerObj.stateObj.attributes.media_content_type === 'music') {
|
||||||
|
cls += ' content-type-music';
|
||||||
|
}
|
||||||
|
|
||||||
return cls;
|
return cls;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user