@@ -25,12 +25,26 @@ export function ControlsPanel({
2525 }
2626 } ;
2727
28+ const handleIncrementByTen = ( ) => {
29+ if ( terminalCount < maxTerminals ) {
30+ const newCount = Math . min ( terminalCount + 10 , maxTerminals ) ;
31+ onTerminalCountChange ( newCount ) ;
32+ }
33+ } ;
34+
2835 const handleDecrement = ( ) => {
2936 if ( terminalCount > minTerminals ) {
3037 onTerminalCountChange ( terminalCount - 1 ) ;
3138 }
3239 } ;
3340
41+ const handleDecrementByTen = ( ) => {
42+ if ( terminalCount > minTerminals ) {
43+ const newCount = Math . max ( terminalCount - 10 , minTerminals ) ;
44+ onTerminalCountChange ( newCount ) ;
45+ }
46+ } ;
47+
3448 const toggleVisibility = ( ) => {
3549 setIsVisible ( ! isVisible ) ;
3650 } ;
@@ -67,7 +81,17 @@ export function ControlsPanel({
6781 </ div >
6882
6983 { /* Terminal Count Control */ }
70- < div className = "flex items-center space-x-3" >
84+ < div className = "flex items-center justify-center space-x-3" >
85+ < button
86+ onClick = { handleDecrementByTen }
87+ disabled = { terminalCount <= minTerminals }
88+ className = "w-8 h-8 bg-red-600 hover:bg-red-700 disabled:bg-gray-600 disabled:cursor-not-allowed text-white rounded font-bold transition-colors border-0 p-0"
89+ style = { { backgroundColor : terminalCount <= minTerminals ? '#4b5563' : '#dc2626' } }
90+ aria-label = "Remove ten terminals"
91+ >
92+ -10
93+ </ button >
94+
7195 < button
7296 onClick = { handleDecrement }
7397 disabled = { terminalCount <= minTerminals }
@@ -77,11 +101,11 @@ export function ControlsPanel({
77101 >
78102 -
79103 </ button >
80-
104+
81105 < span className = "text-white font-mono text-sm min-w-[3rem] text-center" >
82106 { terminalCount } terminal{ terminalCount !== 1 ? 's' : '' }
83107 </ span >
84-
108+
85109 < button
86110 onClick = { handleIncrement }
87111 disabled = { terminalCount >= maxTerminals }
@@ -91,6 +115,16 @@ export function ControlsPanel({
91115 >
92116 +
93117 </ button >
118+
119+ < button
120+ onClick = { handleIncrementByTen }
121+ disabled = { terminalCount >= maxTerminals }
122+ className = "w-8 h-8 bg-green-600 hover:bg-green-700 disabled:bg-gray-600 disabled:cursor-not-allowed text-white rounded font-bold transition-colors border-0 p-0"
123+ style = { { backgroundColor : terminalCount >= maxTerminals ? '#4b5563' : '#059669' } }
124+ aria-label = "Add ten terminals"
125+ >
126+ +10
127+ </ button >
94128 </ div >
95129
96130 { /* Arrange Button */ }
0 commit comments