Skip to content

Commit a9cd4a1

Browse files
authored
fix(theme/OverviewGroup): limit max columns from 4 to 3 (#3127)
1 parent 5a70b6e commit a9cd4a1

File tree

1 file changed

+5
-11
lines changed
  • packages/core/src/theme/components/OverviewGroup

1 file changed

+5
-11
lines changed

packages/core/src/theme/components/OverviewGroup/index.scss

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,10 @@
9595
&__item {
9696
width: 200px;
9797
flex: 0 0 200px;
98-
min-width: 25%; // 4 columns
99-
max-width: 25%; // 4 columns
98+
min-width: 33.33%; // 3 columns
99+
max-width: 33.33%; // 3 columns
100100
word-break: break-all;
101101

102-
@media (min-width: 769px) and (max-width: 1280px) {
103-
// 3 columns
104-
min-width: 33%;
105-
max-width: 33%;
106-
}
107-
108102
@media (max-width: 768px) {
109103
// 2 columns or 1 columns
110104
min-width: 50%;
@@ -135,16 +129,16 @@
135129
// Grid layout for items without content (no headers/items)
136130
&__grid {
137131
display: grid;
138-
grid-template-columns: repeat(4, 1fr);
132+
grid-template-columns: repeat(4, 1fr); // 4 columns by default
139133
gap: 20px;
140134
width: 100%;
141135

142136
@media (max-width: 1280px) {
143-
grid-template-columns: repeat(3, 1fr);
137+
grid-template-columns: repeat(3, 1fr); // 3 columns for medium screens
144138
}
145139

146140
@media (max-width: 768px) {
147-
grid-template-columns: repeat(2, 1fr);
141+
grid-template-columns: repeat(2, 1fr); // 2 columns for small screens
148142
}
149143

150144
@media (max-width: 480px) {

0 commit comments

Comments
 (0)