зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1797591 - Center the icon in the trackers list when no trackers are detected r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D160399
This commit is contained in:
Родитель
b9446c85e2
Коммит
fc690917a6
|
@ -458,7 +458,6 @@ let TrackingProtection = new (class TrackingProtection extends ProtectionCategor
|
|||
// still show the panel. To reduce the confusion, tell the user that we have
|
||||
// not detected any tracker.
|
||||
if (!items.childNodes.length) {
|
||||
let emptyBox = document.createXULElement("vbox");
|
||||
let emptyImage = document.createXULElement("image");
|
||||
emptyImage.classList.add("protections-popup-trackersView-empty-image");
|
||||
emptyImage.classList.add("trackers-icon");
|
||||
|
@ -469,9 +468,8 @@ let TrackingProtection = new (class TrackingProtection extends ProtectionCategor
|
|||
"contentBlocking.trackersView.empty.label"
|
||||
);
|
||||
|
||||
emptyBox.appendChild(emptyImage);
|
||||
emptyBox.appendChild(emptyLabel);
|
||||
items.appendChild(emptyBox);
|
||||
items.appendChild(emptyImage);
|
||||
items.appendChild(emptyLabel);
|
||||
|
||||
this.subViewList.classList.add("empty");
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче