fix(browser-extension): issue #229

This commit is contained in:
wanhose 2024-11-11 20:00:59 +01:00
parent 9559fc761b
commit 5fa4b9566c
3 changed files with 3 additions and 3 deletions

View File

@ -121,7 +121,7 @@
</svg>
</a>
</p>
<div class="grid">
<div class="content">
<button class="popup-button" disabled id="power-option">
<svg
aria-hidden="true"

View File

@ -124,7 +124,7 @@ async function handleContentLoaded() {
const { exclusions } = (await dispatch({ hostname, type: 'GET_DATA' })) ?? {};
const currentVersion = browser.runtime.getManifest().version;
const latestVersion = await dispatch({ type: 'GET_LATEST_VERSION' });
const updateAvailable = currentVersion !== latestVersion;
const updateAvailable = latestVersion && currentVersion !== latestVersion;
if (updateAvailable) {
const updateBanner = document.getElementById('update-banner');

View File

@ -96,7 +96,7 @@ header {
}
}
.grid {
.content {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;