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

Commit dc3778a

Browse files
fix: broken grid style on wide screen (#1205)
1 parent 4315304 commit dc3778a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

studio/src/global/theme/mixins/_dashboard.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@
4242
grid-gap: 16px;
4343
grid-template-columns: repeat(4, 1fr);
4444

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

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

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

5757
@media (max-width: 576px) {

0 commit comments

Comments
 (0)