Fix "You've saved" and "You've skipped" not being on separate lines

Screenshot: https://i.imgur.com/VqeXMmS.png
This commit is contained in:
Alec Rust
2022-03-14 13:17:59 +00:00
parent f7510eea88
commit c0cfa3a683
2 changed files with 4 additions and 4 deletions

View File

@@ -1680,8 +1680,8 @@ function openInfoMenu() {
const closeButton = document.createElement("button"); const closeButton = document.createElement("button");
const closeButtonIcon = document.createElement("img"); const closeButtonIcon = document.createElement("img");
closeButtonIcon.src = chrome.extension.getURL("icons/close.png"); closeButtonIcon.src = chrome.extension.getURL("icons/close.png");
closeButtonIcon.width = 16; closeButtonIcon.width = 15;
closeButtonIcon.height = 16; closeButtonIcon.height = 15;
closeButton.appendChild(closeButtonIcon); closeButton.appendChild(closeButtonIcon);
closeButton.setAttribute("title", chrome.i18n.getMessage("closePopup")); closeButton.setAttribute("title", chrome.i18n.getMessage("closePopup"));
closeButton.classList.add("sbCloseButton"); closeButton.classList.add("sbCloseButton");

View File

@@ -180,7 +180,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
PageElements.sponsorTimesViewsDisplayEndWord.innerText = chrome.i18n.getMessage("Segment"); PageElements.sponsorTimesViewsDisplayEndWord.innerText = chrome.i18n.getMessage("Segment");
} }
PageElements.sponsorTimesViewsDisplay.innerText = viewCount.toLocaleString(); PageElements.sponsorTimesViewsDisplay.innerText = viewCount.toLocaleString();
PageElements.sponsorTimesViewsContainer.style.display = "unset"; PageElements.sponsorTimesViewsContainer.style.display = "block";
} }
showDonateWidget(viewCount); showDonateWidget(viewCount);
@@ -212,7 +212,7 @@ async function runThePopup(messageListener?: MessageListener): Promise<void> {
} }
PageElements.sponsorTimesSkipsDoneDisplay.innerText = Config.config.skipCount.toLocaleString(); PageElements.sponsorTimesSkipsDoneDisplay.innerText = Config.config.skipCount.toLocaleString();
PageElements.sponsorTimesSkipsDoneContainer.style.display = "unset"; PageElements.sponsorTimesSkipsDoneContainer.style.display = "block";
} }
//get the amount of time this user has saved. //get the amount of time this user has saved.