Skip to content

Commit 40fcb9b

Browse files
committed
feat: enhance PhoneInput layout with responsive CountrySelect and full-width input
1 parent 35708a5 commit 40fcb9b

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/Shared/Components/PhoneInput/PhoneInput.component.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,18 @@ const PhoneInput = ({
3131
<div className="flexbox-col dc__gap-6">
3232
<span className={`${required ? 'dc__required-field' : ''} cn-7 fs-13 fw-4 lh-20`}>Phone Number</span>
3333

34-
<div className="flexbox-col dc__gap-4">
35-
<div className="flexbox dc__gap-8">
36-
<CountrySelect
37-
placeholder=""
38-
selectedCountry={country.iso2}
39-
variant="selectPhoneCode"
40-
handleChange={handleUpdateCountry}
41-
name={countryCodeSelectName}
42-
size={countryCodeSelectSize}
43-
/>
34+
<div className="flexbox-col dc__gap-4 dc__grid">
35+
<div className="flexbox dc__gap-8 w-100">
36+
<div className="flexbox dc__mxw-50-per">
37+
<CountrySelect
38+
placeholder=""
39+
selectedCountry={country.iso2}
40+
variant="selectPhoneCode"
41+
handleChange={handleUpdateCountry}
42+
name={countryCodeSelectName}
43+
size={countryCodeSelectSize}
44+
/>
45+
</div>
4446

4547
<CustomInput
4648
placeholder="Phone Number"
@@ -49,6 +51,7 @@ const PhoneInput = ({
4951
value={inputValue}
5052
onChange={handlePhoneValueChange}
5153
inputRef={inputRef}
54+
fullWidth
5255
/>
5356
</div>
5457

0 commit comments

Comments
 (0)