react-draggable-tab icon indicating copy to clipboard operation
react-draggable-tab copied to clipboard

New tab button hidden when too many tabs are open

Open Mackiavelli opened this issue 9 years ago • 1 comments

When too many tabs are open, after they are resized to be narrower automatically by the application, a tab will hide the plus button, limiting the amount of tabs that can be opened at the same time. I think it would be a good idea if it could be changed so that the tab area behaves like in a real browser - with little arrow buttons on each side allowing you to scroll horizontally between different tabs. Also, that will virtually remove the limit on the tabs.

Mackiavelli avatar May 22 '16 10:05 Mackiavelli

Thank you feedback.

For horizontal scroll: You can override scrollX:'scroll' with props.tabsStyles.tabBar And you can use any element with your style as props.tabAddButton.

2016-05-23 10 55 57

For limiting tab counts: You can limit number of tabs by app.js side.

I'm welcome your PR for default behavior and design, Thanks!

georgeOsdDev avatar May 23 '16 02:05 georgeOsdDev