Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions src/panels/config/blueprint/dialog-import-blueprint.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import "../../../components/ha-markdown";
import "@material/mwc-button";
import "@polymer/paper-dialog-scrollable/paper-dialog-scrollable";
import "@polymer/paper-input/paper-input";
import type { PaperInputElement } from "@polymer/paper-input/paper-input";
import {
css,
CSSResult,
customElement,
html,
Expand Down Expand Up @@ -74,9 +74,10 @@ class DialogImportBlueprint extends LitElement {
this._result.blueprint.metadata.domain
)}
<br />
<p class="pre-line">
${this._result.blueprint.metadata.description}
</p>
<ha-markdown
breaks
.content=${this._result.blueprint.metadata.description}
></ha-markdown>
${this._result.validation_errors
? html`
<p class="error">
Expand Down Expand Up @@ -211,15 +212,8 @@ class DialogImportBlueprint extends LitElement {
}
}

static get styles(): CSSResult[] {
return [
haStyleDialog,
css`
.pre-line {
white-space: pre-line;
}
`,
];
static get styles(): CSSResult {
return haStyleDialog;
}
}

Expand Down