Merge pull request #692 from dermotduffy:object-fit-mjpeg

Fit image content to parent size.
This commit is contained in:
Dermot Duffy
2022-06-16 20:17:55 -07:00
committed by GitHub
+5
View File
@@ -141,6 +141,11 @@ customElements.whenDefined('ha-camera-stream').then(() => {
width: 100%;
height: 100%;
}
img {
width: 100%;
height: 100%;
object-fit: contain;
}
`,
];
}