mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-11 20:10:24 +00:00
Allow for lazy loading images in markdown (#16746)
This commit is contained in:
@@ -15,6 +15,9 @@ export class HaMarkdown extends LitElement {
|
||||
|
||||
@property({ type: Boolean }) public breaks = false;
|
||||
|
||||
@property({ type: Boolean, attribute: "lazy-images" }) public lazyImages =
|
||||
false;
|
||||
|
||||
protected render() {
|
||||
if (!this.content) {
|
||||
return nothing;
|
||||
@@ -24,6 +27,7 @@ export class HaMarkdown extends LitElement {
|
||||
.content=${this.content}
|
||||
.allowSvg=${this.allowSvg}
|
||||
.breaks=${this.breaks}
|
||||
.lazyImages=${this.lazyImages}
|
||||
></ha-markdown-element>`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user