Skip to content

Commit e847615

Browse files
janvi01atapaspriyankarpalSachin-chaurasiyajoshi-kaushal
authored
fix: search bar responsiveness mobile view (#1377)
* fix: search bar mobile view * fix: filter popup responsiveness * fix formatting --------- Co-authored-by: Tapas Adhikary <[email protected]> Co-authored-by: Priyankar Pal <[email protected]> Co-authored-by: Sachin Chaurasiya <[email protected]> Co-authored-by: Kaushal Joshi <[email protected]>
1 parent fe95c29 commit e847615

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

src/common/search/FilterPlays.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ const FilterPlays = ({ onChange, query }) => {
228228
>
229229
{FIELD_TEMPLATE.map((field, field_i) => {
230230
return (
231-
<div className="flex flex-col md:flex-row p-2" key={field_i}>
231+
<div className="flex-filter-modal flex-col md:flex-row p-2" key={field_i}>
232232
<div className="w-32">
233233
{field.display}
234234
{field.required ? '*' : ''}

src/common/search/SearchBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const SearchBox = ({ reset }) => {
2929
return (
3030
<div className="filter">
3131
<div
32-
className="flex flex-1 search-input items-center filter-area px-4"
32+
className="flex flex-1 search-input items-center filter-area pl-4 pr-2"
3333
data-testid="plays-search-box-container"
3434
>
3535
<BiSearch className="mr-2" data-testid="plays-search-box-icon" size="24px" />

src/common/search/search.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
align-items: center;
99
}
1010

11+
@media screen and (max-width: 576px) {
12+
.app-header-search {
13+
width: 70%;
14+
}
15+
}
16+
1117
/* Filter*/
1218
.filter {
1319
width: 100%;
@@ -63,6 +69,9 @@
6369
}
6470

6571
@media screen and (max-width: 576px) {
72+
.filter {
73+
padding: 0.5rem 0;
74+
}
6675
.filter .search-input-icon {
6776
left: 0.6rem;
6877
width: 20px;
@@ -118,6 +127,7 @@
118127

119128
@media screen and (max-width: 576px) {
120129
.btn-filter {
130+
padding: 0 0.2rem;
121131
}
122132
.btn-filter .icon {
123133
width: 24px;
@@ -208,6 +218,13 @@
208218
font-size: var(--fs-rg);
209219
}
210220

221+
.flex-filter-modal {
222+
display: flex;
223+
width: 500px;
224+
margin: 0 auto;
225+
justify-content: space-between;
226+
}
227+
211228
/* CSS attributes for clear All button */
212229

213230
.modal-clear-filter {

0 commit comments

Comments
 (0)