Skip to content

Commit 44932f8

Browse files
committed
Use flexbox instead of CSS grid
This makes it easier to customize card components for future work. The side effect is that the last row is centered, which was suggested elsewhere¹. ¹ #878 (comment)
1 parent 10e54df commit 44932f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static-site/src/components/Showcase/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ const PreviewOverlay = styled.div`
111111

112112
const CardsContainer = styled.div`
113113
/* background-color: #ffeab0; */
114-
display: grid;
115-
grid-template-columns: repeat(auto-fit, minmax(${cardWidthHeight}px, max-content));
116-
grid-gap: 1%;
114+
display: inline-flex;
115+
flex-wrap: wrap;
116+
gap: 10px;
117117
overflow: hidden;
118118
justify-content: center;
119119
`;

0 commit comments

Comments
 (0)