Skip to content

Commit f512d39

Browse files
Fixes css of task requests listing page filter and sort modal (#631)
* fix: task requests css for modals * fix: failing test * fix: minor css changes
1 parent dbc9604 commit f512d39

File tree

2 files changed

+13
-16
lines changed

2 files changed

+13
-16
lines changed

__tests__/taskRequests/taskRequest.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe('Task Requests', () => {
107107
expect(
108108
await modal.evaluate((el) => el.classList.contains('hidden')),
109109
).toBe(false);
110-
await page.mouse.click(20, 20);
110+
await page.mouse.click(200, 200);
111111
expect(
112112
await modal.evaluate((el) => el.classList.contains('hidden')),
113113
).toBe(true);

taskRequests/style.css

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ body {
5656
max-width: 1440px;
5757
margin: 0 auto;
5858
padding: 2.5rem;
59+
position: relative;
5960
}
6061
.container__filters {
6162
margin: 1rem 0;
@@ -140,12 +141,11 @@ body {
140141
border-radius: 0.31rem;
141142
flex-direction: column;
142143
align-items: center;
143-
padding: 10px;
144-
padding-bottom: 1rem;
144+
padding: 1rem;
145+
padding-bottom: 1.5rem;
145146
z-index: 2;
146147
position: absolute;
147-
top: 11.25rem;
148-
right: 1rem;
148+
top: 5.5rem;
149149
background-color: var(--white);
150150
}
151151

@@ -163,6 +163,7 @@ body {
163163
.selected {
164164
background-color: var(--dark-gray-color);
165165
}
166+
166167
.sort-container:hover {
167168
background-color: var(--color-gray-light);
168169
}
@@ -181,12 +182,10 @@ body {
181182
border-radius: 0.31rem;
182183
flex-direction: column;
183184
align-items: center;
184-
padding: 10px;
185-
padding-bottom: 1rem;
186-
z-index: 1;
185+
padding: 1rem;
186+
padding-bottom: 1.5rem;
187187
position: absolute;
188-
top: 11.25rem;
189-
right: 1rem;
188+
top: 5.5rem;
190189
background-color: var(--white);
191190
}
192191

@@ -279,16 +278,14 @@ body {
279278
font-weight: 600;
280279
text-align: center;
281280
font-size: 1.5rem;
282-
margin: 2rem;
283-
width: 100vw;
281+
width: 100%;
282+
position: absolute;
284283
}
285284
.taskRequest__message--error {
286285
color: var(--color-error);
287286
font-weight: 600;
288287
text-align: center;
289288
font-size: 1.5rem;
290-
margin: 2rem;
291-
width: 100vw;
292289
}
293290
.taskRequest__card {
294291
cursor: pointer;
@@ -394,7 +391,7 @@ body {
394391

395392
.filter-modal,
396393
.sort-modal {
397-
top: 10.5rem;
394+
top: 4.5rem;
398395
}
399396
.funnel-icon {
400397
margin: auto;
@@ -408,7 +405,7 @@ body {
408405

409406
.filter-modal,
410407
.sort-modal {
411-
top: 10rem;
408+
top: 4rem;
412409
}
413410
}
414411
@media (max-width: 1439px) {

0 commit comments

Comments
 (0)