Skip to content

Commit

Permalink
fix: make cards responsive (#1049)
Browse files Browse the repository at this point in the history
[![PR App][icn]][demo] | Fix CX-1683
:-------------------:|:----------:

## 🧰 Changes
- set cards to one column on mobile

<img width="200" alt="image"
src="https://github.com/user-attachments/assets/e980fc06-8ef3-4733-9f1f-2479fb7f90f6"
/>



## 🧬 QA & Testing

- [Broken on production][prod].
- [Working in this PR app][demo].


[demo]: https://markdown-pr-PR_NUMBER.herokuapp.com
[prod]: https://SUBDOMAIN.readme.io
[icn]:
https://user-images.githubusercontent.com/886627/160426047-1bee9488-305a-4145-bb2b-09d8b757d38a.svg
  • Loading branch information
trishaprile authored Jan 24, 2025
1 parent 07ae215 commit 6a96091
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/Cards/style.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$iphone-plus: 414px;

.CardsGrid {
display: grid;
gap: 20px;
Expand Down Expand Up @@ -45,5 +47,7 @@
}
}


@media (max-width: $iphone-plus) {
grid-template-columns: 1fr !important;
}
}

0 comments on commit 6a96091

Please sign in to comment.