@@ -49,6 +49,7 @@ const useStyles = makeStyles((theme) => ({
4949 marginTop : '16px' ,
5050 position : 'relative' ,
5151 flex : '1 1 100%' ,
52+ height : "100%" ,
5253
5354 [ theme . breakpoints . down ( 'sm' ) ] : {
5455 flexDirection : 'column' ,
@@ -91,7 +92,7 @@ export const Instance = observer((props: Props) => {
9192 const switchTab = ( _ : React . ChangeEvent < { } | null > , tabID : number ) => {
9293 const contentElement = document . getElementById ( 'content-container' )
9394 setActiveTab ( tabID ) ;
94- contentElement . scroll ( 0 , 0 )
95+ contentElement ? .scroll ( 0 , 0 )
9596 } ;
9697
9798 return (
@@ -118,6 +119,7 @@ export const Instance = observer((props: Props) => {
118119 value = { activeTab }
119120 handleChange = { switchTab }
120121 hasLogs = { api . initWS != undefined }
122+ hideInstanceTabs = { props ?. hideInstanceTabs }
121123 />
122124 </ SectionTitle >
123125
@@ -130,11 +132,13 @@ export const Instance = observer((props: Props) => {
130132 < div className = { classes . content } >
131133 { ! instance || ! instance ?. state . retrieving ?. status && < StubSpinner /> }
132134
133- { instance && (
135+ { instance ? (
134136 < >
135137 < Clones />
136138 < Info />
137139 </ >
140+ ) : (
141+ < StubSpinner />
138142 ) }
139143 </ div >
140144 ) }
@@ -149,16 +153,12 @@ export const Instance = observer((props: Props) => {
149153 </ TabPanel >
150154 </ >
151155
152- < TabPanel value = { activeTab } index = { 2 } >
153- < Configuration
154- isConfigurationActive = { isConfigurationActive }
155- disableConfigModification = { instance ?. state . engine . disableConfigModification }
156- switchActiveTab = { switchTab }
157- activeTab = { activeTab }
158- reload = { ( ) => stores . main . load ( props . instanceId ) }
159- />
160- </ TabPanel >
161-
156+ < TabPanel value = { activeTab } index = { 2 } >
157+ < Configuration
158+ switchActiveTab = { ( id : number ) => setActiveTab ( id ) }
159+ activeTab = { activeTab }
160+ reload = { ( ) => stores . main . load ( props . instanceId ) } />
161+ </ TabPanel >
162162 </ StoresProvider >
163163 </ HostProvider >
164164 )
@@ -174,9 +174,12 @@ function TabPanel(props: PropTypes.InferProps<any>) {
174174 hidden = { value !== index }
175175 id = { `scrollable-auto-tabpanel-${ index } ` }
176176 aria-labelledby = { `scrollable-auto-tab-${ index } ` }
177+ style = { { height : "100%" } }
177178 { ...other }
178179 >
179- < Box p = { 3 } > { children } </ Box >
180+ < Box p = { 3 } sx = { { height : '100%' } } >
181+ { children }
182+ </ Box >
180183 </ Typography >
181184 ) ;
182185}
0 commit comments