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:
Razvan Caliman 2020-02-10 09:31:32 +00:00
Родитель 451b254453
Коммит 051fe82571
2 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -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,