diff --git a/src/taskpane/taskpane.css b/src/taskpane/taskpane.css index 685f723..79eccdb 100644 --- a/src/taskpane/taskpane.css +++ b/src/taskpane/taskpane.css @@ -178,6 +178,16 @@ b { padding: 20px; } +.container h2 { + margin-bottom: 5px; +} + +.container em { + margin-bottom: 5px; + font-size: small; + color: gray +} + #inserted-tracking-pixels-container { width: 100%; } @@ -209,6 +219,7 @@ b { text-overflow: ellipsis; overflow: hidden; font-size: small; + text-wrap: nowrap; } #inserted-tracking-pixels-container button { diff --git a/src/taskpane/taskpane.html b/src/taskpane/taskpane.html index 86171ec..1200f7c 100644 --- a/src/taskpane/taskpane.html +++ b/src/taskpane/taskpane.html @@ -36,11 +36,11 @@

Enter Tracking Pixel URL

-

Inserted Tracking Pixels:

- - No inserted tracking pixels detected. +

Inserted Tracking Pixels:

+ + None detected - (Click the box to highlight the pixel) + (Click the box to highlight the pixel)
diff --git a/src/taskpane/taskpane.ts b/src/taskpane/taskpane.ts index f22d2a5..ed6acd7 100644 --- a/src/taskpane/taskpane.ts +++ b/src/taskpane/taskpane.ts @@ -60,13 +60,11 @@ function loadTrackingPixels() { if (trackingPixels.length == 0) { document.getElementById("no-inserted-detected").style.display = "block"; document.getElementById("inserted-detection-instruction").style.display = "none"; - loadLock = false; - return; + } else { + document.getElementById("no-inserted-detected").style.display = "none"; + document.getElementById("inserted-detection-instruction").style.display = "block"; } - document.getElementById("no-inserted-detected").style.display = "none"; - document.getElementById("inserted-detection-instruction").style.display = "block"; - trackingPixels.forEach((trackingPixel) => { let url = trackingPixel.getAttribute("src"); let newTrackingPixel = getTrackingPixelDiv(url);