File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -453,19 +453,16 @@ function AppContent() {
453453 >
454454 { /* Clients Section - Compact dropdown */ }
455455 < box
456- flexDirection = "column "
457- padding = { 1 }
458- paddingBottom = { 0 }
456+ flexDirection = "row "
457+ paddingLeft = { 1 }
458+ paddingRight = { 1 }
459459 flexShrink = { 0 }
460460 height = "auto"
461461 >
462- < text
463- style = { { fg : getSectionHeaderColor ( "clients" ) } }
464- marginBottom = { 1 }
465- >
462+ < text style = { { fg : getSectionHeaderColor ( "clients" ) } } >
466463 { `Clients (${ clientCount ( ) } )` }
467464 </ text >
468- < box paddingLeft = { 1 } >
465+ < box paddingLeft = { 2 } >
469466 < ClientDropdown
470467 clients = { store . clients }
471468 serverStatus = { store . serverStatus }
@@ -487,20 +484,17 @@ function AppContent() {
487484 { /* Spans Section - Resizable with drag handle */ }
488485 < ResizableBox
489486 height = { store . ui . spansHeight }
490- minHeight = { 10 }
487+ minHeight = { 6 }
491488 maxHeight = { 50 }
492489 onResize = { actions . setSpansHeight }
493490 >
494491 < box
495492 flexDirection = "column"
496- padding = { 1 }
497- paddingBottom = { 0 }
493+ paddingLeft = { 1 }
494+ paddingRight = { 1 }
498495 flexGrow = { 1 }
499496 >
500- < text
501- style = { { fg : getSectionHeaderColor ( "spans" ) } }
502- marginBottom = { 1 }
503- >
497+ < text style = { { fg : getSectionHeaderColor ( "spans" ) } } >
504498 { `Spans (${ spanCount ( ) } ) - Active: ${ store . activeClient
505499 . pipe ( Option . map ( ( c ) => c . name ) )
506500 . pipe ( Option . getOrElse ( ( ) => "None" ) ) } `}
@@ -582,6 +576,8 @@ function AppContent() {
582576 padding = { 1 }
583577 paddingBottom = { 0 }
584578 flexGrow = { 1 }
579+ minHeight = { 8 }
580+ maxHeight = { 15 }
585581 >
586582 < text
587583 style = { { fg : getSectionHeaderColor ( "metrics" ) } }
Original file line number Diff line number Diff line change @@ -134,9 +134,10 @@ export function ResizableBox(props: ResizableBoxProps) {
134134 return (
135135 < box
136136 flexDirection = "column"
137- flexGrow = { 0 }
138- flexShrink = { 0 }
139- height = { props . height }
137+ flexGrow = { 1 }
138+ flexShrink = { 1 }
139+ flexBasis = { props . height }
140+ minHeight = { minHeight }
140141 >
141142 { /* Content area */ }
142143 < box flexGrow = { 1 } flexDirection = "column" >
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ export function StoreProvider(props: ParentProps) {
199199 expandedSpanIds : new Set ( ) ,
200200 expandedTraceIds : new Set ( ) ,
201201 clientsExpanded : false ,
202- spansHeight : 35 , // Default height for spans section
202+ spansHeight : 12 , // Default height for spans section (allows metrics to show on short terminals)
203203 metricsHeight : 6 ,
204204 spanFilterQuery : "" ,
205205 showSpanFilter : false ,
You can’t perform that action at this time.
0 commit comments