From 9138c7fb89b1ac0eaf8d3de04d13dc5445432bea Mon Sep 17 00:00:00 2001 From: JP Strydom Date: Tue, 5 Sep 2023 09:50:05 +0200 Subject: [PATCH 1/5] Update DatePickerInputWithoutModal.tsx to support web responsiveness --- src/Date/DatePickerInputWithoutModal.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Date/DatePickerInputWithoutModal.tsx b/src/Date/DatePickerInputWithoutModal.tsx index 36fd0569..2e156814 100644 --- a/src/Date/DatePickerInputWithoutModal.tsx +++ b/src/Date/DatePickerInputWithoutModal.tsx @@ -141,15 +141,18 @@ const styles = StyleSheet.create({ flexGrow: 1, justifyContent: 'center', alignItems: 'flex-start', + width: '100%', }, inputContainer: { flexGrow: 1, flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', + width: '100%', }, input: { flexGrow: 1, + width: '100%', }, }) export default React.forwardRef(DatePickerInputWithoutModal) From 22f07da95b96b319b2bc48b826f726497a78c8c9 Mon Sep 17 00:00:00 2001 From: JP Strydom Date: Tue, 5 Sep 2023 09:53:45 +0200 Subject: [PATCH 2/5] Update snapshots for DatePickerInputWithoutModal.test.tsx.snap --- .../__snapshots__/DatePickerInputWithoutModal.test.tsx.snap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/__tests__/Date/__snapshots__/DatePickerInputWithoutModal.test.tsx.snap b/src/__tests__/Date/__snapshots__/DatePickerInputWithoutModal.test.tsx.snap index e6a40455..370a0b0e 100644 --- a/src/__tests__/Date/__snapshots__/DatePickerInputWithoutModal.test.tsx.snap +++ b/src/__tests__/Date/__snapshots__/DatePickerInputWithoutModal.test.tsx.snap @@ -7,6 +7,7 @@ exports[`renders DatePickerInput 1`] = ` "alignItems": "flex-start", "flexGrow": 1, "justifyContent": "center", + "width": "100%", } } > @@ -17,6 +18,7 @@ exports[`renders DatePickerInput 1`] = ` "flexDirection": "row", "flexGrow": 1, "justifyContent": "flex-start", + "width": "100%", } } > @@ -30,6 +32,7 @@ exports[`renders DatePickerInput 1`] = ` }, { "flexGrow": 1, + "width": "100%", }, ] } From 32a136130f41a019eeb9cf8f8927ad84e069acb6 Mon Sep 17 00:00:00 2001 From: JP Strydom Date: Tue, 5 Sep 2023 13:04:05 +0200 Subject: [PATCH 3/5] Update CalendarEdit snapshots --- .../Date/__snapshots__/CalendarEdit.test.tsx.snap | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap b/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap index f6d3db8e..61cb12fd 100644 --- a/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap +++ b/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap @@ -14,6 +14,7 @@ exports[`renders CalendarEdit 1`] = ` "alignItems": "flex-start", "flexGrow": 1, "justifyContent": "center", + "width": "100%", } } > @@ -23,7 +24,8 @@ exports[`renders CalendarEdit 1`] = ` "alignItems": "center", "flexDirection": "row", "flexGrow": 1, - "justifyContent": "flex-start", + "justifyContent": "flex-start",, + "width": "100%", } } > @@ -36,7 +38,8 @@ exports[`renders CalendarEdit 1`] = ` "borderTopRightRadius": 4, }, { - "flexGrow": 1, + "flexGrow": 1,, + "width": "100%", }, ] } From 7e8684f3f5a604d159a718085e1928339553fea9 Mon Sep 17 00:00:00 2001 From: JP Strydom Date: Tue, 5 Sep 2023 13:04:50 +0200 Subject: [PATCH 4/5] Fixed typos in CalendarEdit.test.tsx.snap --- src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap b/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap index 61cb12fd..b4af2a91 100644 --- a/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap +++ b/src/__tests__/Date/__snapshots__/CalendarEdit.test.tsx.snap @@ -24,7 +24,7 @@ exports[`renders CalendarEdit 1`] = ` "alignItems": "center", "flexDirection": "row", "flexGrow": 1, - "justifyContent": "flex-start",, + "justifyContent": "flex-start", "width": "100%", } } @@ -38,7 +38,7 @@ exports[`renders CalendarEdit 1`] = ` "borderTopRightRadius": 4, }, { - "flexGrow": 1,, + "flexGrow": 1, "width": "100%", }, ] From fddb00e821c6c404a269a8cc6b7cbdeab279f2cb Mon Sep 17 00:00:00 2001 From: JP Strydom Date: Wed, 6 Sep 2023 17:13:01 +0200 Subject: [PATCH 5/5] Update AnimatedCrossView snapshot --- .../Date/__snapshots__/AnimatedCrossView.test.tsx.snap | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/__tests__/Date/__snapshots__/AnimatedCrossView.test.tsx.snap b/src/__tests__/Date/__snapshots__/AnimatedCrossView.test.tsx.snap index 2de38abd..46bad79b 100644 --- a/src/__tests__/Date/__snapshots__/AnimatedCrossView.test.tsx.snap +++ b/src/__tests__/Date/__snapshots__/AnimatedCrossView.test.tsx.snap @@ -3862,6 +3862,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = ` "alignItems": "flex-start", "flexGrow": 1, "justifyContent": "center", + "width": "100%", } } > @@ -3872,6 +3873,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = ` "flexDirection": "row", "flexGrow": 1, "justifyContent": "flex-start", + "width": "100%", } } > @@ -3885,6 +3887,7 @@ exports[`renders collapsed AnimatedCrossView 1`] = ` }, { "flexGrow": 1, + "width": "100%", }, ] }