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(() => {})
|
.then(() => {})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
})
|
||||||
|
|
||||||
|
.finally(() => {
|
||||||
|
aItem.style.removeProperty("margin-bottom");
|
||||||
|
aItem.style.removeProperty("transform");
|
||||||
|
aItem.style.removeProperty("opacity");
|
||||||
});
|
});
|
||||||
const itemLabel =
|
const itemLabel =
|
||||||
aItem.querySelector(".tab-group-label-container") || aItem.querySelector(".tab-content");
|
aItem.querySelector(".tab-group-label-container") || aItem.querySelector(".tab-content");
|
||||||
@@ -913,6 +919,9 @@ window.gZenVerticalTabsManager = {
|
|||||||
.then(() => {})
|
.then(() => {})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
|
itemLabel.style.removeProperty("filter");
|
||||||
});
|
});
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
@@ -1240,12 +1249,14 @@ window.gZenVerticalTabsManager = {
|
|||||||
} else {
|
} else {
|
||||||
navBar.append(windowButtons);
|
navBar.append(windowButtons);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// not windows styled buttons
|
|
||||||
if (isRightSide || !isSidebarExpanded) {
|
|
||||||
navBar.prepend(windowButtons);
|
|
||||||
} else {
|
} else {
|
||||||
topButtons.prepend(windowButtons);
|
// 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) {
|
} else if (!isSingleToolbar && isCompactMode) {
|
||||||
if (captionsShouldStayOnSidebar) {
|
if (captionsShouldStayOnSidebar) {
|
||||||
|
|||||||
Reference in New Issue
Block a user