Skip to content

Commit b76ab2c

Browse files
style: rename and change mcp header font (#9)
Co-authored-by: Andreas Kienle <[email protected]>
1 parent a19d434 commit b76ab2c

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

public/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
"addButton": "Add"
120120
},
121121
"ControlPlaneListView": {
122+
"header": "Your instances of <span>ManagedControlPlane</span>",
122123
"projectHeader": "Project:"
123124
},
124125
"ProjectsListView": {

src/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,9 @@ ui5-form-item {
116116
ui5-toast {
117117
width: 50ch;
118118
max-width: 100%;
119+
}
120+
121+
.mono-font {
122+
font-family: 'Roboto Mono', monospace;
123+
font-weight: bold;
119124
}

src/views/ControlPlanes/ControlPlaneListView.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { ObjectPage, ObjectPageTitle } from '@ui5/webcomponents-react';
1+
import { ObjectPage, ObjectPageTitle, Title } from '@ui5/webcomponents-react';
22
import ProjectChooser from '../../components/Projects/ProjectChooser.tsx';
33
import { useParams } from 'react-router-dom';
44
import ControlPlaneListAllWorkspaces from '../../components/ControlPlanes/List/ControlPlaneListAllWorkspaces.tsx';
55
import IntelligentBreadcrumbs from '../../components/Core/IntelligentBreadcrumbs.tsx';
66
import { ControlPlaneListToolbar } from '../../components/ControlPlanes/List/ControlPlaneListToolbar.tsx';
7-
import { useTranslation } from 'react-i18next';
7+
import { Trans, useTranslation } from 'react-i18next';
88

99
export default function ControlPlaneListView() {
1010
const { projectName } = useParams();
@@ -16,7 +16,14 @@ export default function ControlPlaneListView() {
1616
preserveHeaderStateOnClick={true}
1717
titleArea={
1818
<ObjectPageTitle
19-
header="Your MCPs"
19+
header={
20+
<Title>
21+
<Trans
22+
i18nKey="ControlPlaneListView.header"
23+
components={{ span: <span className="mono-font" /> }}
24+
/>
25+
</Title>
26+
}
2027
subHeader={
2128
<div
2229
style={{

0 commit comments

Comments
 (0)