Skip to content

Commit 8729811

Browse files
authored
fix: Css of modules overview card (kyma-project#3784)
* fix: use flex-wrap for layout of cards in resource details * fix: keep div wrapper of status card * fix companion css
1 parent ec6052e commit 8729811

File tree

5 files changed

+12
-24
lines changed

5 files changed

+12
-24
lines changed

src/components/KymaCompanion/components/KymaCompanion.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#companion_wrapper {
2-
width: 100%;
2+
width: calc(100% - 1rem);
3+
position: absolute;
4+
top: 0.5rem;
5+
left: 0.5rem;
6+
right: 0.5rem;
7+
bottom: 0.5rem;
38

49
.kyma-companion {
510
height: 100%;

src/components/KymaCompanion/components/KymaCompanion.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function KymaCompanion() {
4949
}
5050

5151
return (
52-
<div id="companion_wrapper" className="sap-margin-tiny">
52+
<div id="companion_wrapper">
5353
<Card
5454
className="kyma-companion"
5555
header={

src/shared/components/ResourceDetails/ResourceDetails.scss

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
}
1616

1717
.resource-details-container {
18-
display: grid;
19-
grid-template-columns: 100%;
18+
margin-inline: 1rem;
19+
display: flex;
20+
flex-wrap: wrap;
2021
gap: 1rem;
2122
}
2223

@@ -38,21 +39,3 @@
3839
min-width: 300px;
3940
}
4041
}
41-
42-
@container (min-width: 1100px) {
43-
.resource-details-container {
44-
grid-template-columns: fit-content(100%) max-content;
45-
gap: 0;
46-
47-
&.column-view {
48-
display: flex;
49-
flex-direction: row;
50-
flex-wrap: wrap;
51-
gap: 1rem;
52-
53-
& > * {
54-
flex-grow: 1;
55-
}
56-
}
57-
}
58-
}

src/shared/components/ResourceDetails/ResourceDetailsCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function ResourceDetailsCard({
88
className = '',
99
}) {
1010
return (
11-
<div className={`${wrapperClassname} sap-margin-x-small`}>
11+
<div className={`${wrapperClassname}`}>
1212
<Card className={className} header={<CardHeader titleText={titleText} />}>
1313
<div className="cluster-overview__details-grid sap-margin-small sap-margin-top-tiny">
1414
{content}

src/shared/components/ResourceStatusCard/ResourceStatusCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function ResourceStatusCard({
1313
const { t } = useTranslation();
1414

1515
return (
16-
<div className="sap-margin-x-small">
16+
<div>
1717
<Card
1818
header={
1919
<div className="resource-status-card__header">

0 commit comments

Comments
 (0)