mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
refactor: Apply essentials icons to the entire tab to avoid removing the background when cloning, b=no-bug, c=tabs, welcome, workspaces
This commit is contained in:
@@ -2148,21 +2148,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
originalContainer: essentialsContainer,
|
||||
repeat: 0,
|
||||
});
|
||||
for (let i = 0; i < essentialsClone.children.length; i++) {
|
||||
const child = essentialsClone.children[i];
|
||||
const originalChild = essentialsContainer.children[i];
|
||||
if (!gBrowser.isTab(child) || !gBrowser.isTab(originalChild)) {
|
||||
continue;
|
||||
}
|
||||
const childBg = child.querySelector('.tab-background');
|
||||
const originalChildBg = originalChild.querySelector('.tab-background');
|
||||
if (childBg && originalChildBg) {
|
||||
childBg.style.setProperty(
|
||||
'--zen-tab-icon',
|
||||
originalChildBg.style.getPropertyValue('--zen-tab-icon')
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
document.documentElement.setAttribute('animating-background', 'true');
|
||||
|
Reference in New Issue
Block a user