зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1779972 - [devtools] Force edit and resend panel lines on a single line when not editing r=bomsy,nchevobbe
Each line of the edit and resend panel should no longer grow when resizing the panel But when editing, we fallback to multiline Differential Revision: https://phabricator.services.mozilla.com/D152006
This commit is contained in:
Родитель
74b0626d93
Коммит
439f8332a1
|
@ -28,7 +28,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.auto-growing-textarea::after {
|
||||
.auto-growing-textarea:focus-within::after {
|
||||
content: attr(data-replicated-value) " ";
|
||||
white-space: pre-wrap;
|
||||
visibility: hidden;
|
||||
|
@ -38,10 +38,19 @@
|
|||
.auto-growing-textarea > textarea {
|
||||
resize: none;
|
||||
overflow: hidden;
|
||||
/* Force the content in a single line */
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* When editing a textarea, restore the multiline display */
|
||||
.auto-growing-textarea > textarea:focus {
|
||||
text-overflow: unset;
|
||||
white-space: unset;
|
||||
}
|
||||
|
||||
.auto-growing-textarea > textarea,
|
||||
.auto-growing-textarea::after {
|
||||
.auto-growing-textarea:focus-within::after {
|
||||
grid-area: 1 / 1 / 2 / 2;
|
||||
border: 0;
|
||||
font-weight: normal;
|
||||
|
|
Загрузка…
Ссылка в новой задаче