mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Added padding definition for type game (#3059)
This commit is contained in:
parent
bbae3291e1
commit
5c8e5d3539
@ -57,6 +57,10 @@ class HaMediaPlayerCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
padding-top: 100%;
|
padding-top: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.banner.content-type-game:before {
|
||||||
|
padding-top: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.banner.no-cover:before {
|
.banner.no-cover:before {
|
||||||
padding-top: 88px;
|
padding-top: 88px;
|
||||||
}
|
}
|
||||||
@ -310,6 +314,8 @@ class HaMediaPlayerCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
cls += " no-cover";
|
cls += " no-cover";
|
||||||
} else if (playerObj.stateObj.attributes.media_content_type === "music") {
|
} else if (playerObj.stateObj.attributes.media_content_type === "music") {
|
||||||
cls += " content-type-music";
|
cls += " content-type-music";
|
||||||
|
} else if (playerObj.stateObj.attributes.media_content_type === "game") {
|
||||||
|
cls += " content-type-game";
|
||||||
}
|
}
|
||||||
return cls;
|
return cls;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user