Skip to content

Commit 70a6a72

Browse files
authored
Merge pull request #326 from JPStrydom/patch-1
Added web responsiveness back to date input field
2 parents 5469662 + fddb00e commit 70a6a72

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/Date/DatePickerInputWithoutModal.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,18 @@ const styles = StyleSheet.create({
141141
flexGrow: 1,
142142
justifyContent: 'center',
143143
alignItems: 'flex-start',
144+
width: '100%',
144145
},
145146
inputContainer: {
146147
flexGrow: 1,
147148
flexDirection: 'row',
148149
alignItems: 'center',
149150
justifyContent: 'flex-start',
151+
width: '100%',
150152
},
151153
input: {
152154
flexGrow: 1,
155+
width: '100%',
153156
},
154157
})
155158
export default React.forwardRef(DatePickerInputWithoutModal)

src/__tests__/Date/__snapshots__/AnimatedCrossView.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3862,6 +3862,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
38623862
"alignItems": "flex-start",
38633863
"flexGrow": 1,
38643864
"justifyContent": "center",
3865+
"width": "100%",
38653866
}
38663867
}
38673868
>
@@ -3872,6 +3873,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
38723873
"flexDirection": "row",
38733874
"flexGrow": 1,
38743875
"justifyContent": "flex-start",
3876+
"width": "100%",
38753877
}
38763878
}
38773879
>
@@ -3885,6 +3887,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = `
38853887
},
38863888
{
38873889
"flexGrow": 1,
3890+
"width": "100%",
38883891
},
38893892
]
38903893
}

src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ exports[`renders CalendarEdit 1`] = `
1414
"alignItems": "flex-start",
1515
"flexGrow": 1,
1616
"justifyContent": "center",
17+
"width": "100%",
1718
}
1819
}
1920
>
@@ -24,6 +25,7 @@ exports[`renders CalendarEdit 1`] = `
2425
"flexDirection": "row",
2526
"flexGrow": 1,
2627
"justifyContent": "flex-start",
28+
"width": "100%",
2729
}
2830
}
2931
>
@@ -37,6 +39,7 @@ exports[`renders CalendarEdit 1`] = `
3739
},
3840
{
3941
"flexGrow": 1,
42+
"width": "100%",
4043
},
4144
]
4245
}

src/__tests__/Date/__snapshots__/DatePickerInputWithoutModal.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ exports[`renders DatePickerInput 1`] = `
77
"alignItems": "flex-start",
88
"flexGrow": 1,
99
"justifyContent": "center",
10+
"width": "100%",
1011
}
1112
}
1213
>
@@ -17,6 +18,7 @@ exports[`renders DatePickerInput 1`] = `
1718
"flexDirection": "row",
1819
"flexGrow": 1,
1920
"justifyContent": "flex-start",
21+
"width": "100%",
2022
}
2123
}
2224
>
@@ -30,6 +32,7 @@ exports[`renders DatePickerInput 1`] = `
3032
},
3133
{
3234
"flexGrow": 1,
35+
"width": "100%",
3336
},
3437
]
3538
}

0 commit comments

Comments
 (0)