Skip to content

Commit f6d14d0

Browse files
LasserichGenosseOttlucasgoral
authored
feat: set maxWidth for scaling and reduce gap sizes (#248)
Co-authored-by: Johannes Ott <johannes.ott@sap.com> Co-authored-by: Łukasz Goral <lukasz.goral@sap.com>
1 parent 0750487 commit f6d14d0

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export function ControlPlaneListWorkspaceGridTile({ projectName, workspace }: Pr
7777
>
7878
<Panel
7979
headerLevel="H2"
80-
style={{ margin: '12px 12px 12px 0' }}
80+
style={{ maxWidth: '1280px', margin: '0px auto 0px auto', width: '100%' }}
8181
collapsed={shouldCollapsePanel}
8282
header={
8383
<div

src/components/Projects/ProjectsList.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,17 @@ export default function ProjectsList() {
133133

134134
return (
135135
<>
136-
<AnalyticalTable style={{ margin: '12px' }} columns={stabilizedColumns} data={stabilizedData} />
136+
<AnalyticalTable
137+
style={{
138+
maxWidth: '1280px',
139+
margin: '10px auto 0px auto',
140+
width: '100%',
141+
borderRadius: '12px',
142+
overflow: 'hidden',
143+
}}
144+
columns={stabilizedColumns}
145+
data={stabilizedData}
146+
/>
137147
</>
138148
);
139149
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.panel {
2+
max-width: 1280px;
3+
margin: 0.1em auto -8px auto;
4+
width: 100%;
5+
}

src/spaces/mcp/pages/McpPage.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { BusyIndicator, ObjectPage, ObjectPageSection, ObjectPageTitle, Panel, Title } from '@ui5/webcomponents-react';
22
import { useParams } from 'react-router-dom';
33
import CopyKubeconfigButton from '../../../components/ControlPlanes/CopyKubeconfigButton.tsx';
4+
import styles from './McpPage.module.css';
45
import '@ui5/webcomponents-fiori/dist/illustrations/SimpleBalloon';
56
import '@ui5/webcomponents-fiori/dist/illustrations/SimpleError';
67
// thorws error sometimes if not imported
@@ -106,6 +107,7 @@ export default function McpPage() {
106107
hideTitleText
107108
>
108109
<Panel
110+
className={styles.panel}
109111
headerLevel="H2"
110112
headerText="Panel"
111113
header={<Title level="H3">{t('McpPage.componentsTitle')}</Title>}
@@ -121,6 +123,7 @@ export default function McpPage() {
121123
hideTitleText
122124
>
123125
<Panel
126+
className={styles.panel}
124127
headerLevel="H3"
125128
headerText="Panel"
126129
header={<Title level="H3">{t('McpPage.crossplaneTitle')}</Title>}
@@ -144,6 +147,7 @@ export default function McpPage() {
144147
hideTitleText
145148
>
146149
<Panel
150+
className={styles.panel}
147151
headerLevel="H3"
148152
headerText="Panel"
149153
header={<Title level="H3">{t('McpPage.landscapersTitle')}</Title>}
@@ -159,6 +163,7 @@ export default function McpPage() {
159163
hideTitleText
160164
>
161165
<Panel
166+
className={styles.panel}
162167
headerLevel="H3"
163168
headerText="Panel"
164169
header={<Title level="H3">{t('McpPage.gitOpsTitle')}</Title>}

0 commit comments

Comments
 (0)