Thumbnail size is an attribute.
This commit is contained in:
@@ -21,8 +21,8 @@ export class FrigateCardThumbnail extends LitElement {
|
|||||||
@property({ attribute: true, type: Boolean })
|
@property({ attribute: true, type: Boolean })
|
||||||
public controls = false;
|
public controls = false;
|
||||||
|
|
||||||
@property({ attribute: false })
|
@property({ attribute: true })
|
||||||
set thumbnail_size(size: number) {
|
set thumbnail_size(size: string) {
|
||||||
this.style.setProperty('--frigate-card-thumbnail-size', String(size));
|
this.style.setProperty('--frigate-card-thumbnail-size', String(size));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user