зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1507746 - Shorten the flexbox container's selector in the accordion header if its too long. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D12292 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
4039b4c7c3
Коммит
40e7017dba
|
@ -46,6 +46,13 @@
|
|||
fill: var(--theme-comment-alt);
|
||||
}
|
||||
|
||||
.accordion ._header .truncate {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.accordion ._content {
|
||||
border-bottom: 1px solid var(--theme-splitter-color);
|
||||
font-size: 11px;
|
||||
|
@ -63,3 +70,4 @@
|
|||
padding-inline-end: 1px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -71,7 +71,7 @@ class Accordion extends PureComponent {
|
|||
{ className: "_header",
|
||||
onClick: event => this.handleHeaderClick(i, event) },
|
||||
span({ className: arrowClassName }),
|
||||
item.header
|
||||
span({ className: "truncate" }, item.header)
|
||||
),
|
||||
|
||||
(created[i] || opened[i]) ?
|
||||
|
|
Загрузка…
Ссылка в новой задаче