mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-10 02:46:38 +00:00
Collapse media cards with no cover
This commit is contained in:
parent
a21547abfb
commit
49e5cdde46
@ -31,6 +31,11 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
/* removed .25% from 16:9 ratio to fix YT black bars */
|
/* removed .25% from 16:9 ratio to fix YT black bars */
|
||||||
padding-top: 56%;
|
padding-top: 56%;
|
||||||
|
transition: padding-top .8s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.banner.no-cover:before {
|
||||||
|
padding-top: 91px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner > .cover {
|
.banner > .cover {
|
||||||
|
@ -45,6 +45,7 @@ export default new Polymer({
|
|||||||
return classnames({
|
return classnames({
|
||||||
banner: true,
|
banner: true,
|
||||||
'is-off': playerObj.isOff || playerObj.isIdle,
|
'is-off': playerObj.isOff || playerObj.isIdle,
|
||||||
|
'no-cover': !playerObj.stateObj.attributes.entity_picture,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user