Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: broken grid style on wide screen (#1205)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Jun 13, 2021
1 parent 4315304 commit dc3778a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions studio/src/global/theme/mixins/_dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@
grid-gap: 16px;
grid-template-columns: repeat(4, 1fr);

--card-width: calc((100vw - 64px - 48px) / 4);
--card-width: min(calc((100vw - 64px - 48px) / 4), calc((1400px - 64px - 24px) / 4));

@media (max-width: 992px) {
grid-template-columns: repeat(3, 1fr);
--card-width: calc((100vw - 64px - 48px) / 3);
--card-width: calc((100vw - 64px - 32px) / 3);
}

@media (max-width: 768px) {
grid-template-columns: repeat(2, 1fr);
--card-width: calc((100vw - 64px - 48px) / 2);
--card-width: calc((100vw - 64px - 24px) / 2);
}

@media (max-width: 576px) {
Expand Down

0 comments on commit dc3778a

Please sign in to comment.