Fix webrtc style issue in Safari.

This commit is contained in:
Dermot Duffy
2022-06-13 21:59:02 -07:00
parent 3ada2daf1d
commit 6c494f4b1b
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}`;
};