Fix long more-info toolbar title. (#1034)
Max 2-lines. Ellipsis overflow on supported browsers.pull/1037/head
parent
7be6d17b37
commit
d87d845dbc
|
@ -20,6 +20,18 @@
|
|||
more-info-controls, more-info-settings {
|
||||
--more-info-header-background: var(--secondary-background-color);
|
||||
--more-info-header-color: var(--primary-text-color);
|
||||
--ha-more-info-app-toolbar-title: {
|
||||
/* Design guideline states 24px, changed to 16 to align with state info */
|
||||
margin-left: 16px;
|
||||
line-height: 1.3em;
|
||||
max-height: 2.6em;
|
||||
overflow: hidden;
|
||||
/* webkit and blink still support simple multiline text-overflow */
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 2;
|
||||
-webkit-box-orient: vertical;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
}
|
||||
|
||||
/* overrule the ha-style-dialog max-height on small screens */
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
}
|
||||
|
||||
app-toolbar [main-title] {
|
||||
/* Design guideline states 24px, changed to 16 to align with state info */
|
||||
margin-left: 16px;
|
||||
@apply --ha-more-info-app-toolbar-title;
|
||||
}
|
||||
|
||||
state-card-content {
|
||||
|
@ -38,7 +37,6 @@
|
|||
.main-title {
|
||||
pointer-events: auto;
|
||||
cursor: default;
|
||||
line-height: 64px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
}
|
||||
|
||||
app-toolbar [main-title] {
|
||||
/* Design guideline states 24px, changed to 16 to align with more-info-controls */
|
||||
margin-left: 16px;
|
||||
@apply --ha-more-info-app-toolbar-title;
|
||||
}
|
||||
|
||||
app-toolbar paper-button {
|
||||
|
|
Loading…
Reference in New Issue