зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1613960 - Remove artificial text indent from CSS declarations in Changes panel. r=pbro
For people who want to copy the plain text CSS declarations in the Changes panel, we prevent including the +/- diff signs in the selection. We did preserve the text indent. This patch removes the text indent as well. Differential Revision: https://phabricator.services.mozilla.com/D62052 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
451b254453
Коммит
051fe82571
|
@ -28,7 +28,6 @@ class CSSDeclaration extends PureComponent {
|
|||
|
||||
return dom.div(
|
||||
{ className: `changes__declaration ${className}` },
|
||||
" ", // Two spaces indent when copying plain text to clipboard
|
||||
dom.span(
|
||||
{ className: "changes__declaration-name theme-fg-color3" },
|
||||
property
|
||||
|
|
|
@ -169,8 +169,7 @@
|
|||
}
|
||||
|
||||
.changes__declaration-name {
|
||||
/* Counteract double space used for indentation when text is copied to clipboard */
|
||||
margin-left: -4px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.diff-add,
|
||||
|
|
Загрузка…
Ссылка в новой задаче