Fix CSS width calculation for expanded sidebar and correct typo in opacity removal; ensure proper tab icon updates on pinning.

This commit is contained in:
mr. M
2025-03-06 15:25:06 +01:00
parent 671a76bf86
commit b93faff771
3 changed files with 6 additions and 4 deletions

View File

@@ -103,7 +103,10 @@
position: relative;
background: var(--zen-dialog-background);
border: 1px solid var(--zen-colors-border-contrast);
width: calc(100% - var(--zen-toolbox-padding));
/* times 4 because we have the inner padding and the outter padding to consider */
:root[zen-sidebar-expanded='true'] & {
width: calc(100% + var(--zen-toolbox-padding));
}
:root[zen-single-toolbar='true'] {
padding-top: 0 !important;

View File

@@ -202,7 +202,7 @@ var gZenCompactModeManager = {
this._animating = false;
this.sidebar.style.removeProperty('visibility');
this.sidebar.style.removeProperty('transition');
thhis.sidebar.style.removeProperty('opacity');
this.sidebar.style.removeProperty('opacity');
}, 300);
});
});

View File

@@ -82,7 +82,6 @@
}
onTabIconChanged(tab, url = null) {
const iconUrl = url ?? tab.iconImage.src;
if (tab.hasAttribute('zen-essential') && this._pinsCache) {
const pin = this._pinsCache.find((pin) => pin.uuid === tab.getAttribute('zen-pin-id'));
if (pin) {
@@ -631,8 +630,8 @@
} else {
gBrowser.pinTab(tab);
}
this.onTabIconChanged(tab);
this._onTabMove(tab);
this.onTabIconChanged(tab);
}
gZenUIManager.updateTabsToolbar();
}