mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +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%;
|
||||
}
|
||||
|
||||
.banner.content-type-game:before {
|
||||
padding-top: 100%;
|
||||
}
|
||||
|
||||
.banner.no-cover:before {
|
||||
padding-top: 88px;
|
||||
}
|
||||
@ -310,6 +314,8 @@ class HaMediaPlayerCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
||||
cls += " no-cover";
|
||||
} else if (playerObj.stateObj.attributes.media_content_type === "music") {
|
||||
cls += " content-type-music";
|
||||
} else if (playerObj.stateObj.attributes.media_content_type === "game") {
|
||||
cls += " content-type-game";
|
||||
}
|
||||
return cls;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user