Skip to content

Commit

Permalink
Use flexbox instead of CSS grid
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
victorlin committed Jun 21, 2024
1 parent 10e54df commit 44932f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static-site/src/components/Showcase/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ const PreviewOverlay = styled.div`

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

0 comments on commit 44932f8

Please sign in to comment.