mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-16 06:46:12 +00:00
fix: Fixed restoring tabs not showing the separator correctly, b=(no-bug), c=workspaces
This commit is contained in:
@@ -88,7 +88,11 @@
|
||||
|
||||
this.scrollbox._canScrollToElement = (element) => {
|
||||
if (gBrowser.isTab(element)) {
|
||||
return !element.hasAttribute('zen-essential') || !this.hasAttribute('positionpinnedtabs');
|
||||
return (
|
||||
!element.hasAttribute('zen-essential') &&
|
||||
!this.hasAttribute('positionpinnedtabs') &&
|
||||
!element.hasAttribute('zen-empty-tab')
|
||||
);
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
@@ -2600,7 +2600,10 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
forAnimation = false;
|
||||
}
|
||||
for (const entry of entries) {
|
||||
const originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
|
||||
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
|
||||
if (!originalWorkspaceId) {
|
||||
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
|
||||
}
|
||||
const workspacesIds = [];
|
||||
if (entry.target.closest('#zen-essentials')) {
|
||||
// Get all workspaces that have the same userContextId
|
||||
|
Reference in New Issue
Block a user