diff --git a/src/components/Card-List/CardList.css b/src/components/Card-List/CardList.css index a1a2feb..8ac1dd0 100644 --- a/src/components/Card-List/CardList.css +++ b/src/components/Card-List/CardList.css @@ -3,5 +3,7 @@ margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; + grid-template-columns: repeat(auto-fill, minmax(375px, 1fr)); grid-gap: 20px; + grid-auto-flow: row; } \ No newline at end of file diff --git a/src/components/Card/Card.jsx b/src/components/Card/Card.jsx index e877746..d9b0330 100644 --- a/src/components/Card/Card.jsx +++ b/src/components/Card/Card.jsx @@ -3,7 +3,7 @@ import "./Card.css"; export const Card = (props) => { return ( -