Thumbnail size is an attribute.

This commit is contained in:
Dermot Duffy
2022-04-10 08:50:42 -07:00
parent fbb96a43be
commit 4d070ac132
+2 -2
View File
@@ -21,8 +21,8 @@ export class FrigateCardThumbnail extends LitElement {
@property({ attribute: true, type: Boolean })
public controls = false;
@property({ attribute: false })
set thumbnail_size(size: number) {
@property({ attribute: true })
set thumbnail_size(size: string) {
this.style.setProperty('--frigate-card-thumbnail-size', String(size));
}