mirror of
https://github.com/zen-browser/desktop
synced 2026-04-25 17:15:00 +02:00
fix: Fixed regression of window controls appearing on the right sidebar, b=no-bug, c=common
This commit is contained in:
@@ -896,6 +896,12 @@ window.gZenVerticalTabsManager = {
|
||||
.then(() => {})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
})
|
||||
|
||||
.finally(() => {
|
||||
aItem.style.removeProperty("margin-bottom");
|
||||
aItem.style.removeProperty("transform");
|
||||
aItem.style.removeProperty("opacity");
|
||||
});
|
||||
const itemLabel =
|
||||
aItem.querySelector(".tab-group-label-container") || aItem.querySelector(".tab-content");
|
||||
@@ -913,6 +919,9 @@ window.gZenVerticalTabsManager = {
|
||||
.then(() => {})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
})
|
||||
.finally(() => {
|
||||
itemLabel.style.removeProperty("filter");
|
||||
});
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
@@ -1240,13 +1249,15 @@ window.gZenVerticalTabsManager = {
|
||||
} else {
|
||||
navBar.append(windowButtons);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// not windows styled buttons
|
||||
// eslint-disable-next-line no-lonely-if
|
||||
if (isRightSide || !isSidebarExpanded) {
|
||||
navBar.prepend(windowButtons);
|
||||
} else {
|
||||
topButtons.prepend(windowButtons);
|
||||
}
|
||||
}
|
||||
} else if (!isSingleToolbar && isCompactMode) {
|
||||
if (captionsShouldStayOnSidebar) {
|
||||
topButtons.prepend(windowButtons);
|
||||
|
||||
Reference in New Issue
Block a user