Skip to content

Commit ea43155

Browse files
authored
Merge pull request #6828 from Radha2786/fix/6803-Duration&CurrencySwitcher
fixed alignment of duration and currency switcher
2 parents f4d90c6 + 0a6db28 commit ea43155

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

src/sections/Pricing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const Pricing = () => {
107107
<div className="headers">
108108
<h1 className="header-heading">Plans For Every Team Size</h1>
109109

110-
<div style={{ display: "flex", "gap": "1rem", alignItems: "center", "justifyContent": "flex-end", width: "85%" }} >
110+
<div className="header-controls" style={{ display: "flex", "gap": "1rem", alignItems: "center", "justifyContent": "flex-end", width: "85%" }} >
111111
<CurrencySelect currency={currency} setCurrency={setCurrency} />
112112

113113
<Box sx={customToggleButtonStyles.container}>

src/sections/Pricing/pricing.style.js

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ const PricingWrapper = styled.section`
2020
@media (min-width: 2048px) {
2121
height: 30rem;
2222
}
23+
2324
h1{
2425
margin-top: -2rem;
2526
}
2627
28+
2729
.header-svg {
2830
position: absolute;
2931
bottom: 0;
@@ -35,7 +37,21 @@ const PricingWrapper = styled.section`
3537
color: white;
3638
text-align: center;
3739
}
38-
}
40+
41+
@media (max-width: 383px){
42+
height:27rem;
43+
44+
.header-controls{
45+
flex-direction: column;
46+
gap: 0rem;
47+
}
48+
49+
h1 {
50+
margin-bottom: 1rem;
51+
}
52+
}
53+
54+
}
3955
4056
.toggle-container {
4157
display: flex;
@@ -45,6 +61,11 @@ const PricingWrapper = styled.section`
4561
font-size: .9rem;
4662
gap: 10px;
4763
width: auto;
64+
65+
@media (max-width: 383px){
66+
margin-top: 0rem;
67+
}
68+
4869
}
4970
5071
.toggle {

0 commit comments

Comments
 (0)