@@ -188,13 +188,10 @@ NOTES:
188188 const percentage = ( x / rect . width ) * 100 ;
189189
190190 if ( isDragging === 'terminal' ) {
191- const newTerminalWidth = Math . max ( 30 , Math . min ( 70 , percentage ) ) ;
191+ const newTerminalWidth = Math . max ( 20 , Math . min ( 80 , percentage ) ) ;
192192 setTerminalWidth ( newTerminalWidth ) ;
193193 } else if ( isDragging === 'notes' ) {
194- const newNotesWidth = Math . max (
195- 15 ,
196- Math . min ( 35 , percentage - terminalWidth )
197- ) ;
194+ const newNotesWidth = Math . max ( 10 , Math . min ( 50 , percentage - terminalWidth ) ) ;
198195 setNotesWidth ( newNotesWidth ) ;
199196 }
200197 } ;
@@ -205,7 +202,7 @@ NOTES:
205202 const chartContainer = e . currentTarget as HTMLElement ;
206203 const rect = chartContainer . getBoundingClientRect ( ) ;
207204 const x = e . clientX - rect . left ;
208- const newWidth = Math . max ( 200 , Math . min ( 500 , x ) ) ;
205+ const newWidth = Math . max ( 150 , Math . min ( 600 , x ) ) ;
209206 setChartListWidth ( newWidth ) ;
210207 } ;
211208
@@ -1243,7 +1240,7 @@ NOTES:
12431240 </ div >
12441241 </ div >
12451242
1246- { settings ?. acars ?. notesEnabled && (
1243+ { settings ?. acars ?. notesEnabled && settings ?. acars ?. chartsEnabled && (
12471244 < >
12481245 < div
12491246 className = "w-1 bg-gray-800 hover:bg-blue-500 cursor-col-resize transition-colors mx-2"
@@ -1276,14 +1273,49 @@ NOTES:
12761273 </ div >
12771274 </ div >
12781275 </ div >
1276+
1277+ < div
1278+ className = "w-1 bg-gray-800 hover:bg-blue-500 cursor-col-resize transition-colors mx-2"
1279+ onMouseDown = { ( ) => handleMouseDown ( 'notes' ) }
1280+ />
12791281 </ >
12801282 ) }
12811283
1282- { settings ?. acars ?. chartsEnabled && (
1284+ { settings ?. acars ?. notesEnabled && ! settings ?. acars ?. chartsEnabled && (
12831285 < >
12841286 < div
12851287 className = "w-1 bg-gray-800 hover:bg-blue-500 cursor-col-resize transition-colors mx-2"
1286- onMouseDown = { ( ) => handleMouseDown ( 'notes' ) }
1288+ onMouseDown = { ( ) => handleMouseDown ( 'terminal' ) }
1289+ />
1290+
1291+ < div className = "flex-1 min-w-0" >
1292+ < div className = "bg-gray-900 rounded-2xl shadow-2xl border border-gray-800 overflow-hidden" >
1293+ < div className = "bg-gradient-to-r from-gray-800 to-gray-900 px-4 py-3 border-b border-gray-700" >
1294+ < div className = "flex items-center gap-2" >
1295+ < StickyNote className = "w-4 h-4 text-blue-500" />
1296+ < span className = "text-sm font-mono text-gray-300" >
1297+ Flight Notes
1298+ </ span >
1299+ </ div >
1300+ </ div >
1301+ < div className = "p-4" style = { { height : 'calc(100vh - 200px)' } } >
1302+ < textarea
1303+ value = { notes }
1304+ onChange = { handleNotesChange }
1305+ placeholder = "Loading flight plan details..."
1306+ className = "w-full h-full bg-gray-950 border border-gray-800 rounded-lg p-3 text-xs text-gray-300 font-mono resize-none focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent placeholder-gray-600"
1307+ />
1308+ </ div >
1309+ </ div >
1310+ </ div >
1311+ </ >
1312+ ) }
1313+
1314+ { ! settings ?. acars ?. notesEnabled && settings ?. acars ?. chartsEnabled && (
1315+ < >
1316+ < div
1317+ className = "w-1 bg-gray-800 hover:bg-purple-500 cursor-col-resize transition-colors mx-2"
1318+ onMouseDown = { ( ) => handleMouseDown ( 'terminal' ) }
12871319 />
12881320
12891321 < div className = "flex-1 min-w-0" >
0 commit comments