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:
Itiel 2022-10-27 11:56:37 +00:00
Родитель b9446c85e2
Коммит fc690917a6
1 изменённых файлов: 2 добавлений и 4 удалений

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

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