mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Dev tools -> yaml: use "pre" instead of "span" for "validate-log" (#24722)
* use "pre" instead of "span" for "validate-log" * prettier * prettier * remove "Important" for margin * remove line-breakes * prettier * prettier * prettier-ignore * prettier * prettier
This commit is contained in:
parent
eb7923fa49
commit
a9ddaf1bd7
@ -120,9 +120,9 @@ export class DeveloperYamlConfig extends LitElement {
|
|||||||
"ui.panel.developer-tools.tabs.yaml.section.validation.errors"
|
"ui.panel.developer-tools.tabs.yaml.section.validation.errors"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span class="validate-log"
|
<!-- prettier-ignore -->
|
||||||
>${this._validateResult.errors}</span
|
<pre class="validate-log">${this._validateResult
|
||||||
>
|
.errors}</pre>
|
||||||
</ha-alert>`
|
</ha-alert>`
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
@ -134,9 +134,9 @@ export class DeveloperYamlConfig extends LitElement {
|
|||||||
"ui.panel.developer-tools.tabs.yaml.section.validation.warnings"
|
"ui.panel.developer-tools.tabs.yaml.section.validation.warnings"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span class="validate-log"
|
<!-- prettier-ignore -->
|
||||||
>${this._validateResult.warnings}</span
|
<pre class="validate-log">${this._validateResult
|
||||||
>
|
.warnings}</pre>
|
||||||
</ha-alert>`
|
</ha-alert>`
|
||||||
: ""
|
: ""
|
||||||
}
|
}
|
||||||
@ -246,6 +246,7 @@ export class DeveloperYamlConfig extends LitElement {
|
|||||||
.validate-log {
|
.validate-log {
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user