Minor rendering refactor.
This commit is contained in:
1 parent
aecbbc27bd
commit
8a09f356c2
1 file changed
+2
-12
@@ -997,22 +997,12 @@ export class FrigateCard extends LitElement {
|
||||
return html` <ha-card @click=${this._interactionHandler}>
|
||||
${this.config.menu_mode != 'below' ? this._renderMenu() : ''}
|
||||
<div class="frigate-card-contents">
|
||||
${this._view.is('clips')
|
||||
${this._view.is('clips') || this._view.is('snapshots')
|
||||
? html`<div class="frigate-card-gallery">
|
||||
${until(this._renderEvents(), this._renderProgressIndicator())}
|
||||
</div>`
|
||||
: ``}
|
||||
${this._view.is('snapshots')
|
||||
? html`<div class="frigate-card-gallery">
|
||||
${until(this._renderEvents(), this._renderProgressIndicator())}
|
||||
</div>`
|
||||
: ``}
|
||||
${this._view.is('clip')
|
||||
? html`<div class="frigate-card-viewer">
|
||||
${until(this._renderViewer(), this._renderProgressIndicator())}
|
||||
</div>`
|
||||
: ``}
|
||||
${this._view.is('snapshot')
|
||||
${this._view.is('clip') || this._view.is('snapshot')
|
||||
? html`<div class="frigate-card-viewer">
|
||||
${until(this._renderViewer(), this._renderProgressIndicator())}
|
||||
</div>`
|
||||
|
||||
Reference in new issue
Block a user