1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Give sidebar open tab a bit more room for its label

This commit is contained in:
Nick O'Leary 2021-06-14 09:24:34 +01:00
parent 68a5325849
commit ae686bb15d
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -388,7 +388,7 @@ RED.tabs = (function() {
var visibleCount = collapsedButtonsRow.children(":visible").length; var visibleCount = collapsedButtonsRow.children(":visible").length;
tabWidth = width - collapsedButtonsRow.width()-10; tabWidth = width - collapsedButtonsRow.width()-10;
var maxTabWidth = 198; var maxTabWidth = 198;
var minTabWidth = 80; var minTabWidth = 120;
if (tabWidth <= minTabWidth || (tabWidth < maxTabWidth && visibleCount > 5)) { if (tabWidth <= minTabWidth || (tabWidth < maxTabWidth && visibleCount > 5)) {
// The tab is too small. Hide the next button to make room // 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 // Start at the end of the button row, -1 for the menu button