@@ -67,8 +67,8 @@ export type Props = Pick<BaseProps, "tab" | "REPL" | "onExit" | "searchable" | "
67
67
/** Callback when user selects a profile */
68
68
onSelectProfile ?( profile : string , profiles ?: import ( "madwizard" ) . Profiles . Profile [ ] ) : void
69
69
70
- /** Content to place below the terminal */
71
- belowTerminal ?: React . ReactNode
70
+ /** Content to place above the terminal */
71
+ aboveTerminal ?: React . ReactNode
72
72
}
73
73
74
74
type State = Partial < Pick < BaseProps , "cmdline" | "env" > > & {
@@ -95,8 +95,8 @@ export class TaskTerminal extends React.PureComponent<Props, State> {
95
95
/** Allotment initial split ... allotments */
96
96
private readonly splits = {
97
97
horizontal : [ 25 , 75 ] ,
98
- vertical1 : [ 100 ] , // no `this.props.belowTerminal `
99
- vertical2 : [ 40 , 60 ] , // yes
98
+ vertical1 : [ 100 ] , // no `this.props.aboveTerminal `
99
+ vertical2 : [ 60 , 40 ] , // yes
100
100
}
101
101
102
102
private readonly tasks = [ { label : "Run a Job" , argv : [ "codeflare" , "-p" , "${SELECTED_PROFILE}" ] } ]
@@ -203,9 +203,10 @@ export class TaskTerminal extends React.PureComponent<Props, State> {
203
203
) : (
204
204
< Allotment
205
205
vertical
206
- defaultSizes = { ! this . props . belowTerminal ? this . splits . vertical1 : this . splits . vertical2 }
206
+ defaultSizes = { ! this . props . aboveTerminal ? this . splits . vertical1 : this . splits . vertical2 }
207
207
snap
208
208
>
209
+ { this . props . aboveTerminal && < AllotmentFillPane > { this . props . aboveTerminal } </ AllotmentFillPane > }
209
210
< AllotmentFillPane >
210
211
< SelectedProfileTerminal
211
212
key = { this . state . initCount + "_" + this . state . cmdline + "-" + this . state . selectedProfile }
@@ -215,7 +216,6 @@ export class TaskTerminal extends React.PureComponent<Props, State> {
215
216
selectedProfile = { this . state . selectedProfile }
216
217
/>
217
218
</ AllotmentFillPane >
218
- { this . props . belowTerminal && < AllotmentFillPane > { this . props . belowTerminal } </ AllotmentFillPane > }
219
219
</ Allotment >
220
220
) }
221
221
</ AllotmentFillPane >
0 commit comments