@@ -2,25 +2,26 @@ import { Button, Card, FlexBox, Label, Title } from '@ui5/webcomponents-react';
22import '@ui5/webcomponents-fiori/dist/illustrations/NoData.js' ;
33import '@ui5/webcomponents-fiori/dist/illustrations/EmptyList.js' ;
44import '@ui5/webcomponents-icons/dist/delete' ;
5- import ConnectButton from './ConnectButton.tsx' ;
6- import { ListWorkspacesType } from '../../lib/api/types/crate/listWorkspaces.ts' ;
5+ import ConnectButton from '.. /ConnectButton.tsx' ;
6+ import { ListWorkspacesType } from '../../../ lib/api/types/crate/listWorkspaces.ts' ;
77import {
88 ListControlPlanesType ,
99 ReadyStatus ,
10- } from '../../lib/api/types/crate/controlPlanes.ts' ;
10+ } from '../../../ lib/api/types/crate/controlPlanes.ts' ;
1111import TitleLevel from '@ui5/webcomponents/dist/types/TitleLevel.js' ;
1212import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js' ;
1313import { useState } from 'react' ;
14- import { useApiResourceMutation } from '../../lib/api/useApiResource.ts' ;
14+ import { useApiResourceMutation } from '../../../ lib/api/useApiResource.ts' ;
1515import {
1616 DeleteMCPResource ,
1717 DeleteMCPType ,
1818 PatchMCPResourceForDeletion ,
1919 PatchMCPResourceForDeletionBody ,
20- } from '../../lib/api/types/crate/deleteMCP.ts' ;
21- import { DeleteConfirmationDialog } from '../Dialogs/DeleteConfirmationDialog.tsx' ;
22- import MCPHealthPopoverButton from '../ControlPlane/MCPHealthPopoverButton.tsx' ;
23- import { KubectlDeleteMcp } from '../Dialogs/KubectlCommandInfo/Controllers/KubectlDeleteMcp.tsx' ;
20+ } from '../../../lib/api/types/crate/deleteMCP.ts' ;
21+ import { DeleteConfirmationDialog } from '../../Dialogs/DeleteConfirmationDialog.tsx' ;
22+ import MCPHealthPopoverButton from '../../ControlPlane/MCPHealthPopoverButton.tsx' ;
23+ import styles from './ControlPlaneCard.module.css' ;
24+ import { KubectlDeleteMcp } from '../../Dialogs/KubectlCommandInfo/Controllers/KubectlDeleteMcp.tsx' ;
2425
2526interface Props {
2627 controlPlane : ListControlPlanesType ;
@@ -53,11 +54,8 @@ export function ControlPlaneCard({
5354
5455 return (
5556 < >
56- < Card
57- key = { `${ name } --${ namespace } ` }
58- style = { { margin : '12px 12px 12px 0' } }
59- >
60- < div style = { { padding : '20px' } } >
57+ < Card key = { `${ name } --${ namespace } ` } className = { styles . card } >
58+ < div className = { styles . container } >
6159 < FlexBox direction = "Column" >
6260 < FlexBox direction = "Row" justifyContent = "SpaceBetween" >
6361 < FlexBox direction = "Column" >
@@ -81,7 +79,7 @@ export function ControlPlaneCard({
8179 direction = "Row"
8280 justifyContent = "SpaceBetween"
8381 alignItems = "Center"
84- style = { { paddingTop : '20px' } }
82+ className = { styles . row }
8583 >
8684 < MCPHealthPopoverButton mcpStatus = { controlPlane . status } />
8785 < ConnectButton
0 commit comments