Skip to content

Commit f4e89ab

Browse files
committed
Make mobile search look a bit better
1 parent 5624c68 commit f4e89ab

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

components/SVG/SVGMobileSearchIcon.component.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ const SVGMobileSearchIcon = () => {
1515
to: [
1616
{
1717
opacity: isExpanded ? 1 : 0,
18-
marginTop: isExpanded ? '30px' : '-180px',
18+
marginTop: isExpanded ? '20px' : '-180px',
1919
},
2020
],
2121
from: {
2222
opacity: isExpanded ? 1 : 0,
23-
marginTop: isExpanded ? '30px' : '-180px',
23+
marginTop: isExpanded ? '20px' : '-180px',
2424
},
2525
});
2626

@@ -46,10 +46,10 @@ const SVGMobileSearchIcon = () => {
4646
style={mobileSearchSlideDownAnimation}
4747
className="absolute right-0 z-50 w-full p-4 text-black bg-white"
4848
>
49-
<div className="cursor-pointer">
49+
<div id="closeXsearch" className="mt-2 ml-64 cursor-pointer">
5050
<SVGCloseX setisExpanded={setisExpanded} />
5151
</div>
52-
<br />
52+
5353
<MobileSearch />
5454
</animated.div>
5555
)}

styles/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
width: 300px;
1111
}
1212

13+
#closeXsearch {
14+
padding-left: 6px;
15+
16+
}
17+
1318
#close-cart-p {
1419
margin-top: 2px;
1520
}

0 commit comments

Comments
 (0)