fix: Fixed restoring tabs not showing the separator correctly, b=(no-bug), c=workspaces

This commit is contained in:
Mr. M
2025-05-19 19:11:49 +02:00
parent 8536634fa4
commit 3e9d98233c
2 changed files with 9 additions and 2 deletions

View File

@@ -88,7 +88,11 @@
this.scrollbox._canScrollToElement = (element) => { this.scrollbox._canScrollToElement = (element) => {
if (gBrowser.isTab(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; return true;
}; };

View File

@@ -2600,7 +2600,10 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
forAnimation = false; forAnimation = false;
} }
for (const entry of entries) { 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 = []; const workspacesIds = [];
if (entry.target.closest('#zen-essentials')) { if (entry.target.closest('#zen-essentials')) {
// Get all workspaces that have the same userContextId // Get all workspaces that have the same userContextId