1- import { BusyIndicator , ObjectPage , ObjectPageSection , ObjectPageTitle , Button } from '@ui5/webcomponents-react' ;
1+ import { BusyIndicator , ObjectPage , ObjectPageSection , ObjectPageTitle , Panel } from '@ui5/webcomponents-react' ;
22import { useParams } from 'react-router-dom' ;
33import CopyKubeconfigButton from '../../../components/ControlPlanes/CopyKubeconfigButton.tsx' ;
44import styles from './McpPage.module.css' ;
55import '@ui5/webcomponents-fiori/dist/illustrations/SimpleBalloon' ;
6- import '@ui5/webcomponents-fiori/dist/illustrations/SimpleError' ;
76// thorws error sometimes if not imported
87import '@ui5/webcomponents-fiori/dist/illustrations/BeforeSearch' ;
98import IllustratedError from '../../../components/Shared/IllustratedError.tsx' ;
@@ -183,6 +182,11 @@ function McpPageContent({ mcp, controlPlaneName }: { mcp: any; controlPlaneName:
183182 } , 300 ) ;
184183 } ;
185184
185+ // Add spacer at the bottom of the content
186+ const BottomSpacer = ( ) => (
187+ < div style = { { height : '40px' , backgroundColor : '#f9f9f9' , marginTop : '16px' , marginBottom : '32px' } } > </ div >
188+ ) ;
189+
186190 return (
187191 < ObjectPage
188192 preserveHeaderStateOnClick = { true }
@@ -245,21 +249,8 @@ function McpPageContent({ mcp, controlPlaneName }: { mcp: any; controlPlaneName:
245249 size = "large"
246250 secondarySegments = { providerDistribution . segments }
247251 secondaryLabel = { `Providers ${ providerDistribution . totalProviders } ` }
252+ expanded = { expandedCard === 'crossplane' } /* Add this prop to control icon */
248253 />
249- { expandedCard === 'crossplane' && (
250- < Button
251- icon = "sap-icon://collapse"
252- design = "Default"
253- onClick = { handleCollapseExpanded }
254- tooltip = "Collapse to overview"
255- style = { {
256- position : 'absolute' ,
257- bottom : '8px' ,
258- right : '8px' ,
259- zIndex : 10
260- } }
261- />
262- ) }
263254 </ div >
264255 </ BentoCard >
265256 ) }
@@ -282,18 +273,7 @@ function McpPageContent({ mcp, controlPlaneName }: { mcp: any; controlPlaneName:
282273 config = { gitOpsConfig }
283274 onClick = { handleCollapseExpanded }
284275 size = "large"
285- />
286- < Button
287- icon = "sap-icon://collapse"
288- design = "Default"
289- onClick = { handleCollapseExpanded }
290- tooltip = "Collapse to overview"
291- style = { {
292- position : 'absolute' ,
293- bottom : '8px' ,
294- right : '8px' ,
295- zIndex : 10
296- } }
276+ expanded = { true }
297277 />
298278 </ div >
299279 </ BentoCard >
@@ -395,21 +375,29 @@ function McpPageContent({ mcp, controlPlaneName }: { mcp: any; controlPlaneName:
395375 { /* Tables section - outside the BentoGrid to maintain the 600px layout */ }
396376 { expandedCard === 'crossplane' && (
397377 < div style = { { marginTop : '24px' } } >
398- < div className = "crossplane-table-element" >
399- < Providers />
400- </ div >
401- < div className = "crossplane-table-element" >
402- < ProvidersConfig />
403- </ div >
404- < div className = "crossplane-table-element" >
405- < ManagedResources />
406- </ div >
378+ < Panel headerText = "Details" >
379+ < div style = { { marginTop : '24px' } } >
380+ < div className = "crossplane-table-element" >
381+ < Providers />
382+ </ div >
383+ < div className = "crossplane-table-element" style = { { marginTop : '16px' } } >
384+ < ProvidersConfig />
385+ </ div >
386+ < div className = "crossplane-table-element" style = { { marginTop : '16px' } } >
387+ < ManagedResources />
388+ </ div >
389+ </ div >
390+ </ Panel >
391+ < div style = { { height : '12px' , backgroundColor : '#f5f5f5' , marginBottom : '32px' , borderRadius : '0 0 8px 8px' } } > </ div >
407392 </ div >
408393 ) }
409394
410395 { expandedCard === 'gitops' && (
411396 < div style = { { marginTop : '24px' } } >
412- < FluxList />
397+ < Panel headerText = "Flux List" >
398+ < FluxList />
399+ </ Panel >
400+ < div style = { { height : '12px' , backgroundColor : '#f5f5f5' , marginBottom : '32px' , borderRadius : '0 0 8px 8px' } } > </ div >
413401 </ div >
414402 ) }
415403 </ div >
0 commit comments