mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 11:46:42 +00:00
Format blueprint descriptions with markdown (#8109)
This commit is contained in:
parent
f9d28fc124
commit
2b0f43f334
@ -28,6 +28,7 @@ import {
|
|||||||
} from "../../../data/blueprint";
|
} from "../../../data/blueprint";
|
||||||
import "../../../components/ha-blueprint-picker";
|
import "../../../components/ha-blueprint-picker";
|
||||||
import "../../../components/ha-circular-progress";
|
import "../../../components/ha-circular-progress";
|
||||||
|
import "../../../components/ha-markdown";
|
||||||
import "../../../components/ha-selector/ha-selector";
|
import "../../../components/ha-selector/ha-selector";
|
||||||
import "../../../components/ha-settings-row";
|
import "../../../components/ha-settings-row";
|
||||||
|
|
||||||
@ -148,9 +149,11 @@ export class HaBlueprintAutomationEditor extends LitElement {
|
|||||||
There is an error in this Blueprint: ${blueprint.error}
|
There is an error in this Blueprint: ${blueprint.error}
|
||||||
</p>`
|
</p>`
|
||||||
: html`${blueprint?.metadata.description
|
: html`${blueprint?.metadata.description
|
||||||
? html`<p class="card-content pre-line">
|
? html`<ha-markdown
|
||||||
${blueprint.metadata.description}
|
class="card-content"
|
||||||
</p>`
|
breaks
|
||||||
|
.content=${blueprint.metadata.description}
|
||||||
|
></ha-markdown>`
|
||||||
: ""}
|
: ""}
|
||||||
${blueprint?.metadata?.input &&
|
${blueprint?.metadata?.input &&
|
||||||
Object.keys(blueprint.metadata.input).length
|
Object.keys(blueprint.metadata.input).length
|
||||||
@ -267,9 +270,6 @@ export class HaBlueprintAutomationEditor extends LitElement {
|
|||||||
.padding {
|
.padding {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
.pre-line {
|
|
||||||
white-space: pre-line;
|
|
||||||
}
|
|
||||||
.blueprint-picker-container {
|
.blueprint-picker-container {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user