From ae686bb15d5fae288e60604390f2526f937b1a66 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 14 Jun 2021 09:24:34 +0100 Subject: [PATCH] Give sidebar open tab a bit more room for its label --- .../@node-red/editor-client/src/js/ui/common/tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js b/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js index ee6ea1960..f27eaa0d4 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/common/tabs.js @@ -388,7 +388,7 @@ RED.tabs = (function() { var visibleCount = collapsedButtonsRow.children(":visible").length; tabWidth = width - collapsedButtonsRow.width()-10; var maxTabWidth = 198; - var minTabWidth = 80; + var minTabWidth = 120; if (tabWidth <= minTabWidth || (tabWidth < maxTabWidth && visibleCount > 5)) { // The tab is too small. Hide the next button to make room // Start at the end of the button row, -1 for the menu button @@ -786,7 +786,7 @@ RED.tabs = (function() { return ul.find("li.red-ui-tab").length; }, activeIndex: function() { - return ul.find("li.active").index() + return ul.find("li.active").index() }, contains: function(id) { return ul.find("a[href='#"+id+"']").length > 0;