mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-06 19:38:24 +00:00
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:
@@ -103,7 +103,10 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
background: var(--zen-dialog-background);
|
background: var(--zen-dialog-background);
|
||||||
border: 1px solid var(--zen-colors-border-contrast);
|
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'] {
|
:root[zen-single-toolbar='true'] {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
|
@@ -202,7 +202,7 @@ var gZenCompactModeManager = {
|
|||||||
this._animating = false;
|
this._animating = false;
|
||||||
this.sidebar.style.removeProperty('visibility');
|
this.sidebar.style.removeProperty('visibility');
|
||||||
this.sidebar.style.removeProperty('transition');
|
this.sidebar.style.removeProperty('transition');
|
||||||
thhis.sidebar.style.removeProperty('opacity');
|
this.sidebar.style.removeProperty('opacity');
|
||||||
}, 300);
|
}, 300);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -82,7 +82,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onTabIconChanged(tab, url = null) {
|
onTabIconChanged(tab, url = null) {
|
||||||
const iconUrl = url ?? tab.iconImage.src;
|
|
||||||
if (tab.hasAttribute('zen-essential') && this._pinsCache) {
|
if (tab.hasAttribute('zen-essential') && this._pinsCache) {
|
||||||
const pin = this._pinsCache.find((pin) => pin.uuid === tab.getAttribute('zen-pin-id'));
|
const pin = this._pinsCache.find((pin) => pin.uuid === tab.getAttribute('zen-pin-id'));
|
||||||
if (pin) {
|
if (pin) {
|
||||||
@@ -631,8 +630,8 @@
|
|||||||
} else {
|
} else {
|
||||||
gBrowser.pinTab(tab);
|
gBrowser.pinTab(tab);
|
||||||
}
|
}
|
||||||
this.onTabIconChanged(tab);
|
|
||||||
this._onTabMove(tab);
|
this._onTabMove(tab);
|
||||||
|
this.onTabIconChanged(tab);
|
||||||
}
|
}
|
||||||
gZenUIManager.updateTabsToolbar();
|
gZenUIManager.updateTabsToolbar();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user