Skip to content

Commit 8e2377e

Browse files
committed
Add media queries for filters
1 parent 578cb10 commit 8e2377e

File tree

1 file changed

+55
-15
lines changed

1 file changed

+55
-15
lines changed

src/apps/review/src/lib/components/ScorecardsFilter/ScorecardsFilter.module.scss

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -110,27 +110,67 @@
110110
font-weight: 700;
111111
}
112112

113-
@media (max-width: 768px) {
114-
flex-direction: column;
115-
align-items: stretch;
113+
}
116114

117-
> * {
118-
flex: 1 !important;
119-
width: 100%;
120-
}
121-
}
115+
@media (max-width: 768px) {
116+
.filtersContainer {
117+
flex-wrap: wrap;
118+
justify-content: center;
119+
gap: 1rem;
122120

123-
:global(.input-el) {
124-
margin-bottom: 0;
125-
padding: 3px 16px 3px 16px;
121+
.inputWrapper {
122+
flex: 1 1 100%;
123+
min-width: 0 !important;
126124
}
127125

128-
:global(.input-wrapper) {
129-
height: 38px;
126+
// Two filters per row
127+
.typeSelect,
128+
.projectTypeSelect,
129+
.categorySelect,
130+
.statusSelect,
131+
.clearButton {
132+
flex: 1 1 calc(50% - 0.5rem);
133+
min-width: 0;
130134
}
135+
}
136+
}
131137

132-
:global(.btn-size-lg) {
133-
padding: 6px 24px;
138+
@media (max-width: 1285px) and (min-width: 769px) {
139+
140+
.filtersContainer {
141+
142+
.typeSelect,
143+
.projectTypeSelect,
144+
.categorySelect,
145+
.statusSelect {
146+
flex: 1 1 20%;
147+
min-width: 0;
148+
149+
> div:first-child {
150+
white-space: normal;
151+
min-width: 0;
152+
}
134153
}
154+
}
155+
}
135156

157+
158+
@media (max-width: 500px) {
159+
.filtersContainer > * {
160+
flex: 1 1 100%;
161+
}
162+
}
163+
164+
:global(.input-el) {
165+
margin-bottom: 0;
166+
padding: 3px 16px 3px 16px;
136167
}
168+
169+
:global(.input-wrapper) {
170+
height: 38px;
171+
}
172+
173+
:global(.btn-size-lg) {
174+
padding: 6px 24px;
175+
}
176+

0 commit comments

Comments
 (0)