Fixed common issues with workspaces and the new empty tab

This commit is contained in:
mr. m
2025-02-20 11:53:33 +01:00
parent 61311bd3e6
commit c1870fee32
6 changed files with 77 additions and 25 deletions

View File

@@ -631,6 +631,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
* @param {string} gridType - The type of grid layout.
*/
splitTabs(tabs, gridType) {
tabs = tabs.filter((tab) => !tab.hasAttribute("zen-empty-tab"));
if (tabs.length < 2) {
return;
}