Add state-info ellipsis + fix height (#7740)

This commit is contained in:
Philip Allgaier 2020-11-26 23:54:30 +01:00 committed by GitHub
parent 124aa947e2
commit 6020890384
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,6 @@ class StateInfo extends LitElement {
static get styles(): CSSResult {
return css`
:host {
@apply --paper-font-body1;
min-width: 120px;
white-space: nowrap;
}
@ -118,9 +117,10 @@ class StateInfo extends LitElement {
}
.name {
@apply --paper-font-common-nowrap;
color: var(--primary-text-color);
line-height: 40px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.name[in-dialog],
@ -131,8 +131,10 @@ class StateInfo extends LitElement {
.time-ago,
.extra-info,
.extra-info > * {
@apply --paper-font-common-nowrap;
color: var(--secondary-text-color);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.row {