mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 11:30:01 +00:00
Ensure state is vertically centered in more-info (#12780)
This commit is contained in:
@@ -155,7 +155,7 @@ class HuiGenericEntityRow extends LitElement {
|
||||
</div>`
|
||||
: html``}
|
||||
${this.catchInteraction ?? !DOMAINS_INPUT_ROW.includes(domain)
|
||||
? html` <div
|
||||
? html`<div
|
||||
class="text-content ${classMap({
|
||||
pointer,
|
||||
})}"
|
||||
@@ -165,7 +165,7 @@ class HuiGenericEntityRow extends LitElement {
|
||||
hasDoubleClick: hasAction(this.config!.double_tap_action),
|
||||
})}
|
||||
>
|
||||
<slot></slot>
|
||||
<div class="state"><slot></slot></div>
|
||||
</div>`
|
||||
: html`<slot></slot>`}
|
||||
`;
|
||||
@@ -230,6 +230,12 @@ class HuiGenericEntityRow extends LitElement {
|
||||
.pointer {
|
||||
cursor: pointer;
|
||||
}
|
||||
.state {
|
||||
text-align: right;
|
||||
}
|
||||
.state.rtl {
|
||||
text-align: left;
|
||||
}
|
||||
`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user