mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-22 15:25:35 +00:00
test: Fixed tests and other small QA fixes, b=no-bug, c=common, workspaces
This commit is contained in:
@@ -2473,7 +2473,10 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
const shouldHideSeparator =
|
||||
pinnedContainer.children.length === 1 ||
|
||||
Array.from(arrowScrollbox.children).filter(
|
||||
(child) => !child.hasAttribute('hidden') && !child.hasAttribute('zen-empty-tab')
|
||||
(child) =>
|
||||
!child.hasAttribute('hidden') &&
|
||||
!child.hasAttribute('bursting') &&
|
||||
!child.hasAttribute('zen-empty-tab')
|
||||
).length <= 1;
|
||||
if (shouldHideSeparator) {
|
||||
pinnedContainer.setAttribute('hide-separator', 'true');
|
||||
@@ -2498,7 +2501,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
for (const entry of entries) {
|
||||
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
|
||||
if (!originalWorkspaceId) {
|
||||
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
|
||||
originalWorkspaceId = entry.target.closest('zen-workspace')?.id || this.activeWorkspace;
|
||||
}
|
||||
const workspacesIds = [];
|
||||
if (entry.target.closest('#zen-essentials')) {
|
||||
|
||||
Reference in New Issue
Block a user