Improve CSS encapslation (Chrome).
This commit is contained in:
@@ -212,7 +212,6 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
${this.view.is('clip')
|
${this.view.is('clip')
|
||||||
? resolvedMedia?.mime_type.toLowerCase() == 'application/x-mpegurl'
|
? resolvedMedia?.mime_type.toLowerCase() == 'application/x-mpegurl'
|
||||||
? html`<ha-hls-player
|
? html`<ha-hls-player
|
||||||
class="media"
|
|
||||||
.hass=${this.hass}
|
.hass=${this.hass}
|
||||||
.url=${resolvedMedia.url}
|
.url=${resolvedMedia.url}
|
||||||
title="${mediaToRender.title}"
|
title="${mediaToRender.title}"
|
||||||
@@ -224,7 +223,6 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
>
|
>
|
||||||
</ha-hls-player>`
|
</ha-hls-player>`
|
||||||
: html`<video
|
: html`<video
|
||||||
class="media"
|
|
||||||
title="${mediaToRender.title}"
|
title="${mediaToRender.title}"
|
||||||
muted
|
muted
|
||||||
controls
|
controls
|
||||||
@@ -237,7 +235,6 @@ export class FrigateCardViewer extends LitElement {
|
|||||||
</video>`
|
</video>`
|
||||||
: html`<img
|
: html`<img
|
||||||
src=${resolvedMedia.url}
|
src=${resolvedMedia.url}
|
||||||
class="media"
|
|
||||||
title="${mediaToRender.title}"
|
title="${mediaToRender.title}"
|
||||||
@click=${() => {
|
@click=${() => {
|
||||||
// Get clips potentially related to this snapshot.
|
// Get clips potentially related to this snapshot.
|
||||||
|
|||||||
@@ -14,7 +14,3 @@ ha-icon-button.button {
|
|||||||
ha-icon-button.button.emphasize {
|
ha-icon-button.button.emphasize {
|
||||||
color: var(--primary-color, white);
|
color: var(--primary-color, white);
|
||||||
}
|
}
|
||||||
|
|
||||||
video, img {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
@use './common.scss';
|
|
||||||
|
|
||||||
.container_16_9 {
|
.container_16_9 {
|
||||||
/* 16:9 Aspect Ratio. When Safari supports 'aspect-ratio' this should not be
|
/* 16:9 Aspect Ratio. When Safari supports 'aspect-ratio' this should not be
|
||||||
necessary */
|
necessary */
|
||||||
@@ -65,7 +63,6 @@ ha-card {
|
|||||||
color: var(--secondary-text-color, white);
|
color: var(--secondary-text-color, white);
|
||||||
background-color: var(--secondary-background-color, black);
|
background-color: var(--secondary-background-color, black);
|
||||||
|
|
||||||
transform-style: preserve-3d; /* Safari brings video elements forward without this */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-card a {
|
ha-card a {
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
@use './common.scss';
|
@use './button.scss';
|
||||||
|
|
||||||
.frigate-card-menu {
|
.frigate-card-menu {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@use './common.scss';
|
@use './button.scss';
|
||||||
|
|
||||||
.controls {
|
.controls {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
img.media,video.media,canvas.media {
|
img,video {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user