diff --git a/src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.module.css b/src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.module.css new file mode 100644 index 00000000..91197e01 --- /dev/null +++ b/src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.module.css @@ -0,0 +1,11 @@ +.card { + margin: 0.75rem 0.75rem 0.75rem 0; +} + +.container { + padding: 1.25rem; +} + +.row { + padding-top: 1.25rem; +} diff --git a/src/components/ControlPlanes/ControlPlaneCard.tsx b/src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx similarity index 81% rename from src/components/ControlPlanes/ControlPlaneCard.tsx rename to src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx index e0ff996c..a2308b83 100644 --- a/src/components/ControlPlanes/ControlPlaneCard.tsx +++ b/src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.tsx @@ -2,25 +2,26 @@ import { Button, Card, FlexBox, Label, Title } from '@ui5/webcomponents-react'; import '@ui5/webcomponents-fiori/dist/illustrations/NoData.js'; import '@ui5/webcomponents-fiori/dist/illustrations/EmptyList.js'; import '@ui5/webcomponents-icons/dist/delete'; -import ConnectButton from './ConnectButton.tsx'; -import { ListWorkspacesType } from '../../lib/api/types/crate/listWorkspaces.ts'; +import ConnectButton from '../ConnectButton.tsx'; +import { ListWorkspacesType } from '../../../lib/api/types/crate/listWorkspaces.ts'; import { ListControlPlanesType, ReadyStatus, -} from '../../lib/api/types/crate/controlPlanes.ts'; +} from '../../../lib/api/types/crate/controlPlanes.ts'; import TitleLevel from '@ui5/webcomponents/dist/types/TitleLevel.js'; import ButtonDesign from '@ui5/webcomponents/dist/types/ButtonDesign.js'; import { useState } from 'react'; -import { useApiResourceMutation } from '../../lib/api/useApiResource.ts'; +import { useApiResourceMutation } from '../../../lib/api/useApiResource.ts'; import { DeleteMCPResource, DeleteMCPType, PatchMCPResourceForDeletion, PatchMCPResourceForDeletionBody, -} from '../../lib/api/types/crate/deleteMCP.ts'; -import { DeleteConfirmationDialog } from '../Dialogs/DeleteConfirmationDialog.tsx'; -import MCPHealthPopoverButton from '../ControlPlane/MCPHealthPopoverButton.tsx'; -import { KubectlDeleteMcp } from '../Dialogs/KubectlCommandInfo/Controllers/KubectlDeleteMcp.tsx'; +} from '../../../lib/api/types/crate/deleteMCP.ts'; +import { DeleteConfirmationDialog } from '../../Dialogs/DeleteConfirmationDialog.tsx'; +import MCPHealthPopoverButton from '../../ControlPlane/MCPHealthPopoverButton.tsx'; +import styles from './ControlPlaneCard.module.css'; +import { KubectlDeleteMcp } from '../../Dialogs/KubectlCommandInfo/Controllers/KubectlDeleteMcp.tsx'; interface Props { controlPlane: ListControlPlanesType; @@ -53,11 +54,8 @@ export function ControlPlaneCard({ return ( <> - -
+ +
@@ -81,7 +79,7 @@ export function ControlPlaneCard({ direction="Row" justifyContent="SpaceBetween" alignItems="Center" - style={{ paddingTop: '20px' }} + className={styles.row} >