Skip to content

Commit 3940f98

Browse files
committed
Move inline styles to CSS module
1 parent 6181585 commit 3940f98

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.card {
2+
margin: 12px 12px 12px 0;
3+
}
4+
5+
.container {
6+
padding: 20px;
7+
}
8+
9+
.row {
10+
paddingTop: 20px;
11+
}

src/components/ControlPlanes/ControlPlaneCard.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import {
2020
} from '../../lib/api/types/crate/deleteMCP.ts';
2121
import { DeleteConfirmationDialog } from '../Dialogs/DeleteConfirmationDialog.tsx';
2222
import MCPHealthPopoverButton from '../ControlPlane/MCPHealthPopoverButton.tsx';
23+
import classes from './ControlPlaneCard.module.css';
2324

2425
interface Props {
2526
controlPlane: ListControlPlanesType;
@@ -52,11 +53,8 @@ export function ControlPlaneCard({
5253

5354
return (
5455
<>
55-
<Card
56-
key={`${name}--${namespace}`}
57-
style={{ margin: '12px 12px 12px 0' }}
58-
>
59-
<div style={{ padding: '20px' }}>
56+
<Card key={`${name}--${namespace}`} className={classes.card}>
57+
<div className={classes.container}>
6058
<FlexBox direction="Column">
6159
<FlexBox direction="Row" justifyContent="SpaceBetween">
6260
<FlexBox direction="Column">
@@ -80,7 +78,7 @@ export function ControlPlaneCard({
8078
direction="Row"
8179
justifyContent="SpaceBetween"
8280
alignItems="Center"
83-
style={{ paddingTop: '20px' }}
81+
className={classes.row}
8482
>
8583
<MCPHealthPopoverButton mcpStatus={controlPlane.status} />
8684
<ConnectButton

0 commit comments

Comments
 (0)