Skip to content

Commit 9a0836f

Browse files
authored
Merge pull request #452 from web-ridge/fix-save-label-truncation-android
Fix save label truncation android
2 parents f5261e5 + a5fe374 commit 9a0836f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Date/DatePickerModalHeader.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ export default function DatePickerModalHeader(
4444
color={color}
4545
testID="react-native-paper-dates-close"
4646
/>
47-
<Appbar.Content title={undefined} />
47+
<Appbar.Content title="" />
4848
<Button
4949
textColor={theme.isV3 ? theme.colors.primary : color}
5050
onPress={props.onSave}
5151
disabled={props.saveLabelDisabled ?? false}
5252
uppercase={props.uppercase ?? true}
53+
contentStyle={styles.buttonStyle}
5354
testID="react-native-paper-dates-save"
5455
>
5556
{saveLabel}
@@ -68,4 +69,7 @@ const styles = StyleSheet.create({
6869
elevation: 0,
6970
backgroundColor: 'transparent',
7071
},
72+
buttonStyle: {
73+
paddingHorizontal: 8,
74+
},
7175
})

0 commit comments

Comments
 (0)