Fix overlapped tiles and hidden title for 2:3 aspect ratio media classes (#12853)

This commit is contained in:
wizmo2 2022-06-07 10:42:37 -04:00 committed by GitHub
parent 54377225ec
commit 4b36770adf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,7 +485,10 @@ export class HaMediaPlayerBrowse extends LitElement {
.layout=${grid({
itemSize: {
width: "175px",
height: "225px",
height:
childrenMediaClass.thumbnail_ratio === "portrait"
? "312px"
: "225px",
},
gap: "16px",
flex: { preserve: "aspect-ratio" },