From 21e0496d6fc16d2a3ba5677248ee9730191eb9d0 Mon Sep 17 00:00:00 2001 From: "Mr. M" Date: Sun, 27 Apr 2025 22:51:25 +0200 Subject: [PATCH] fix: Fixed switching workspaces with containerized essentials, b=(no-bug), c=tabs, workspaces --- src/zen/tabs/zen-tabs/vertical-tabs.css | 1 - src/zen/workspaces/ZenWorkspaces.mjs | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/zen/tabs/zen-tabs/vertical-tabs.css b/src/zen/tabs/zen-tabs/vertical-tabs.css index a00bd3d0d..5e1edd0e1 100644 --- a/src/zen/tabs/zen-tabs/vertical-tabs.css +++ b/src/zen/tabs/zen-tabs/vertical-tabs.css @@ -1275,6 +1275,5 @@ &[hidden='true'] { visibility: hidden; pointer-events: none; - position: fixed; } } diff --git a/src/zen/workspaces/ZenWorkspaces.mjs b/src/zen/workspaces/ZenWorkspaces.mjs index 2e0882748..ff4cdaf8a 100644 --- a/src/zen/workspaces/ZenWorkspaces.mjs +++ b/src/zen/workspaces/ZenWorkspaces.mjs @@ -2052,7 +2052,10 @@ var ZenWorkspaces = new (class extends ZenMultiWindowFeature { (w) => w.uuid === essentialsWorkspacess[essentialsWorkspacess.length - 1].uuid ); // Check if the container is even going to appear on the screen, to save on animation - if (firstWorkspaceIndex > newWorkspaceIndex || lastWorkspaceIndex < newWorkspaceIndex) { + if ( + (isGoingLeft && newWorkspaceIndex > lastWorkspaceIndex) || + (!isGoingLeft && newWorkspaceIndex < firstWorkspaceIndex) + ) { container.remove(); continue; }