mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 10:44:56 +00:00
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:
parent
b9446c85e2
commit
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user