Small changes

This commit is contained in:
mmble
2020-09-01 14:36:22 +02:00
parent f2317caad2
commit 76db584daf
2 changed files with 10 additions and 1 deletions

View File

@@ -173,6 +173,13 @@ div.logoText>p, .recordingSubtitle {
font-size: 19px; font-size: 19px;
} }
#mainControls > label > svg {
min-width: 16px;
min-height: 16px;
margin-top: auto;
margin-bottom: auto;
}
label>svg>path { label>svg>path {
fill: var(--sb-main-fg-color); fill: var(--sb-main-fg-color);
} }
@@ -225,6 +232,7 @@ label>svg, button#optionsButton>img, .logoText>img, #usernameValue {
#usernameValue{ #usernameValue{
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
max-width: 130px;
} }
#setUsername { #setUsername {

View File

@@ -333,6 +333,7 @@ async function runThePopup(messageListener?: MessageListener) {
if (response.value) { if (response.value) {
PageElements.whitelistChannel.style.display = "none"; PageElements.whitelistChannel.style.display = "none";
PageElements.unwhitelistChannel.style.display = "unset"; PageElements.unwhitelistChannel.style.display = "unset";
PageElements.whitelistToggle.checked = true;
document.querySelectorAll('label > svg')[0].classList.add("rotated"); document.querySelectorAll('label > svg')[0].classList.add("rotated");
PageElements.downloadedSponsorMessageTimes.innerText = chrome.i18n.getMessage("channelWhitelisted"); PageElements.downloadedSponsorMessageTimes.innerText = chrome.i18n.getMessage("channelWhitelisted");
@@ -969,7 +970,7 @@ async function runThePopup(messageListener?: MessageListener) {
PageElements.unwhitelistChannel.style.display = "unset"; PageElements.unwhitelistChannel.style.display = "unset";
document.querySelectorAll('label > svg')[0].classList.add("rotated"); document.querySelectorAll('label > svg')[0].classList.add("rotated");
//if (!Config.config.forceChannelCheck) PageElements.whitelistForceCheck.style.display = "unset"; //TODO if (!Config.config.forceChannelCheck) PageElements.whitelistForceCheck.style.display = "unset";
PageElements.downloadedSponsorMessageTimes.innerText = chrome.i18n.getMessage("channelWhitelisted"); PageElements.downloadedSponsorMessageTimes.innerText = chrome.i18n.getMessage("channelWhitelisted");
PageElements.downloadedSponsorMessageTimes.style.fontWeight = "bold"; PageElements.downloadedSponsorMessageTimes.style.fontWeight = "bold";