Skip to content

Commit e14f10f

Browse files
committed
Move inline styles to Common CSS
1 parent 6181585 commit e14f10f

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"dependencies": {
2020
"@dagrejs/dagre": "^1.1.4",
2121
"@hookform/resolvers": "^4.1.3",
22+
"@sap-ui/common-css": "^0.39.1",
2223
"@ui5/webcomponents": "^2.7.2",
2324
"@ui5/webcomponents-fiori": "^2.7.2",
2425
"@ui5/webcomponents-icons": "^2.7.2",

src/components/ControlPlanes/ControlPlaneCard.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export function ControlPlaneCard({
5454
<>
5555
<Card
5656
key={`${name}--${namespace}`}
57-
style={{ margin: '12px 12px 12px 0' }}
57+
className="sap-margin-begin-small sap-margin-end-small sap-margin-top-small"
5858
>
59-
<div style={{ padding: '20px' }}>
59+
<div className="sap-padding">
6060
<FlexBox direction="Column">
6161
<FlexBox direction="Row" justifyContent="SpaceBetween">
6262
<FlexBox direction="Column">
@@ -80,7 +80,7 @@ export function ControlPlaneCard({
8080
direction="Row"
8181
justifyContent="SpaceBetween"
8282
alignItems="Center"
83-
style={{ paddingTop: '20px' }}
83+
className="sap-margin-top-small"
8484
>
8585
<MCPHealthPopoverButton mcpStatus={controlPlane.status} />
8686
<ConnectButton

src/main.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import { DarkModeSystemSwitcher } from './components/Core/DarkModeSystemSwitcher
1717
import '.././i18n.ts';
1818
import './utils/i18n/timeAgo';
1919
import { useTranslation } from 'react-i18next';
20+
import '@sap-ui/common-css/dist/common-css.css';
2021

2122
(async () => {
2223
try {

0 commit comments

Comments
 (0)