Temporary fix to opening extensions (#34) and added update server support

This commit is contained in:
Mauro Balades
2024-07-06 18:49:09 +02:00
parent df1c6af96a
commit f9cafd7cc0
7 changed files with 56 additions and 27 deletions

View File

@@ -51,6 +51,11 @@ button {
text-align: center;
}
#theme .card[disabled="true"] {
opacity: 0.7;
cursor: not-allowed;
}
.cardGroup {
display: flex;
flex-wrap: wrap;

View File

@@ -134,11 +134,18 @@ class Themes extends Page {
container.classList.add('card');
container.classList.add('card-no-hover');
if (theme.id == "firefox-compact-dream@mozilla.org" || theme.id == "firefox-compact-galaxy@mozilla.org") {
container.setAttribute('disabled', 'true')
}
if (theme.isActive) {
container.classList.add('selected')
}
container.addEventListener('click', () => {
if (container.hasAttribute('disabled')) {
return
}
document.body.classList.add('normal-background');
themeElements.forEach((el) => el.classList.remove('selected'))
container.classList.add('selected')