Merge pull request #688 from dermotduffy/safari-style

Fix webrtc card style issue in Safari
This commit is contained in:
Dermot Duffy
2022-06-13 22:02:35 -07:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -907,6 +907,12 @@ export class FrigateCardLiveWebRTCCard extends LitElement {
(e as FrigateCardError).context,
);
}
if (webrtcElement) {
// Set the id to ensure that the relevant CSS styles will have
// sufficient specifity to overcome some styles that are otherwise
// applied to <ha-card> in Safari.
webrtcElement.id = "webrtc";
}
return html`${webrtcElement}`;
};
+1 -1
View File
@@ -5,7 +5,7 @@
}
/* Don't drop shadow or have radius for nested webrtc card */
webrtc-camera ha-card {
#webrtc ha-card {
box-shadow: none;
border-radius: 0px;
background-color: black;