Skip to content

Commit a8428a4

Browse files
committed
fix
1 parent a7e6cb8 commit a8428a4

File tree

3 files changed

+30
-12
lines changed

3 files changed

+30
-12
lines changed

src/components/ControlPlanes/ControlPlaneCard/ControlPlaneCard.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.card {
2-
margin: 0.75rem 0.75rem 0.75rem 0;
3-
min-width: min-content;
2+
margin: 0;
43
}
54

65
.container {

src/components/ControlPlanes/List/ControlPlaneListWorkspaceGridTile.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -161,16 +161,18 @@ export function ControlPlaneListWorkspaceGridTile({ projectName, workspace }: Pr
161161
}
162162
/>
163163
) : (
164-
<FlexBox wrap={'Wrap'} gap={'1rem'}>
165-
{controlplanes?.map((cp) => (
166-
<ControlPlaneCard
167-
key={`${cp.metadata.name}--${cp.metadata.namespace}`}
168-
controlPlane={cp}
169-
projectName={projectName}
170-
workspace={workspace}
171-
/>
172-
))}
173-
</FlexBox>
164+
<div className={styles.wrapper}>
165+
<div className={styles.grid}>
166+
{controlplanes?.map((cp) => (
167+
<ControlPlaneCard
168+
key={`${cp.metadata.name}--${cp.metadata.namespace}`}
169+
controlPlane={cp}
170+
projectName={projectName}
171+
workspace={workspace}
172+
/>
173+
))}
174+
</div>
175+
</div>
174176
)}
175177
</Panel>
176178
</ObjectPageSection>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
.createButton {
22
margin-bottom: 2rem;
33
}
4+
5+
.wrapper {
6+
margin-top: 1rem;
7+
margin-bottom: 1rem;
8+
}
9+
10+
.grid {
11+
display: grid;
12+
grid-template-columns: 1fr;
13+
gap: 2rem;
14+
@container (width > 768px) {
15+
grid-template-columns: 1fr 1fr;
16+
}
17+
@container (width > 1024px) {
18+
grid-template-columns: 1fr 1fr 1fr;
19+
}
20+
}

0 commit comments

Comments
 (0)