Thumbnail carousel initial draft

This commit is contained in:
Dermot Duffy
2021-11-22 17:07:33 -08:00
parent e99a5a5ef7
commit 6c03934656
10 changed files with 242 additions and 125 deletions
+12 -1
View File
@@ -9,7 +9,7 @@
// available as compilation time.
// ====================================================================
import { TemplateResult, html } from 'lit';
import { TemplateResult, css, html } from 'lit';
import { customElement } from 'lit/decorators.js';
import { dispatchMediaShowEvent } from '../common.js';
@@ -75,5 +75,16 @@ customElements.whenDefined('ha-camera-stream').then(() => {
: ''}
`;
}
static get styles(): CSSResultGroup {
return [
super.styles,
css`
:host {
width: 100%;
height: 100%;
}`
];
}
}
});
+19 -1
View File
@@ -9,8 +9,9 @@
// available as compilation time.
// ====================================================================
import { TemplateResult, html } from 'lit';
import { TemplateResult, css, html } from 'lit';
import { customElement } from 'lit/decorators.js';
import {
dispatchMediaShowEvent,
dispatchPauseEvent,
@@ -44,5 +45,22 @@ customElements.whenDefined('ha-hls-player').then(() => {
></video>
`;
}
static get styles(): CSSResultGroup {
return [
super.styles,
css`
:host {
width: 100%;
height: 100%;
}
video {
object-fit: contain;
height: 100%;
width: 100%;
}
`
]
}
}
});