Skip to content

Commit 3bdb4e1

Browse files
authored
Merge pull request #39 from quickfix-j/copilot/update-features-grid-layout
Center featuresGrid last row via flexbox
2 parents 66f55e8 + 4c0ea3c commit 3bdb4e1

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/pages/index.module.css

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,15 @@
406406
}
407407

408408
.featuresGrid {
409-
display: grid;
410-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
409+
display: flex;
410+
flex-wrap: wrap;
411+
justify-content: center;
411412
gap: 1.5rem;
412413
}
413414

414415
.featureCard {
416+
flex: 1 1 300px;
417+
max-width: 400px;
415418
padding: 1.75rem;
416419
background: #fafafa;
417420
border: 1px solid #e4e4e7;
@@ -607,7 +610,7 @@
607610
}
608611

609612
.featuresGrid {
610-
grid-template-columns: 1fr;
613+
flex-direction: column;
611614
}
612615

613616
.protocolGrid {

0 commit comments

Comments
 (0)