mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +00:00
Add state-info ellipsis + fix height (#7740)
This commit is contained in:
parent
124aa947e2
commit
6020890384
@ -94,7 +94,6 @@ class StateInfo extends LitElement {
|
|||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
:host {
|
:host {
|
||||||
@apply --paper-font-body1;
|
|
||||||
min-width: 120px;
|
min-width: 120px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
@ -118,9 +117,10 @@ class StateInfo extends LitElement {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.name {
|
.name {
|
||||||
@apply --paper-font-common-nowrap;
|
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
line-height: 40px;
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.name[in-dialog],
|
.name[in-dialog],
|
||||||
@ -131,8 +131,10 @@ class StateInfo extends LitElement {
|
|||||||
.time-ago,
|
.time-ago,
|
||||||
.extra-info,
|
.extra-info,
|
||||||
.extra-info > * {
|
.extra-info > * {
|
||||||
@apply --paper-font-common-nowrap;
|
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user