Added media queries

This commit is contained in:
Daniel Shleifman
2021-05-25 19:58:27 +03:00
parent be561767ea
commit 7b24e3e603
3 changed files with 104 additions and 22 deletions

View File

@@ -7,8 +7,13 @@ import Torrent from './Torrent'
const TorrentListWrapper = styled.div`
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
grid-template-columns: repeat(auto-fit, 350px);
gap: 30px;
@media (max-width: 600px), (max-height: 500px) {
gap: 10px;
grid-template-columns: repeat(auto-fit, 310px);
}
`
export default function TorrentList() {