mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +00:00
Capitalize first character of attributes (#7313)
This commit is contained in:
parent
44166f76d4
commit
97ca0b818e
@ -33,7 +33,9 @@ class HaAttributes extends LitElement {
|
||||
).map(
|
||||
(attribute) => html`
|
||||
<div class="data-entry">
|
||||
<div class="key">${attribute.replace(/_/g, " ")}</div>
|
||||
<div class="key">
|
||||
${attribute.replace(/_/g, " ").replace("id", "ID")}
|
||||
</div>
|
||||
<div class="value">
|
||||
${this.formatAttribute(attribute)}
|
||||
</div>
|
||||
@ -62,6 +64,9 @@ class HaAttributes extends LitElement {
|
||||
max-width: 200px;
|
||||
overflow-wrap: break-word;
|
||||
}
|
||||
.key:first-letter {
|
||||
text-transform: capitalize;
|
||||
}
|
||||
.attribution {
|
||||
color: var(--secondary-text-color);
|
||||
text-align: right;
|
||||
|
Loading…
x
Reference in New Issue
Block a user