From 548fbe689515fd7afa2c55cfd45420dc29a1edb2 Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Fri, 7 Jan 2022 12:48:20 +0500 Subject: [PATCH] fixed rtl alignment issues in post options modal --- src/config/locales/en-US.json | 1 + src/screens/editor/children/beneficiarySelectionContent.tsx | 3 ++- src/screens/editor/children/styles.ts | 6 +++++- src/screens/editor/children/thumbSelectionContent.tsx | 4 ++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/config/locales/en-US.json b/src/config/locales/en-US.json index 407996f12..1fbeff8e7 100644 --- a/src/config/locales/en-US.json +++ b/src/config/locales/en-US.json @@ -331,6 +331,7 @@ "draft_save_success":"Draft Saved", "draft_save_fail":"Failed to save draft", "select_thumb":"Select Post Thumbnail", + "add_more_imgs":"Add more images to post", "two_thumbs_required":"Add more images in your post before setting thumbnail", "scheduled_for":"Scheduled For", "scheduled_immediate":"Immediate", diff --git a/src/screens/editor/children/beneficiarySelectionContent.tsx b/src/screens/editor/children/beneficiarySelectionContent.tsx index 37baf9998..4631ffe1d 100644 --- a/src/screens/editor/children/beneficiarySelectionContent.tsx +++ b/src/screens/editor/children/beneficiarySelectionContent.tsx @@ -230,7 +230,8 @@ const BeneficiarySelectionContent = ({ draftId, setDisableDone }) => { onPress={newEditable?_resetInputs:_addAccount} textStyle={{ color:EStyleSheet.value('$primaryBlue'), - fontWeight:'bold' + fontWeight:'bold', + textAlign:'left', }} /> diff --git a/src/screens/editor/children/styles.ts b/src/screens/editor/children/styles.ts index 9448482ec..9472474a9 100644 --- a/src/screens/editor/children/styles.ts +++ b/src/screens/editor/children/styles.ts @@ -28,6 +28,7 @@ export default EStyleSheet.create({ fontSize: 14, fontWeight: 'bold', flexGrow: 1, + textAlign:'left', }, listContainer:{ paddingBottom:getBottomSpace() + 16, @@ -37,7 +38,7 @@ export default EStyleSheet.create({ }, bodyWrapper: { flex: 1, paddingTop: 20, paddingBottom:20}, inputWrapper: { flexDirection: 'row', alignItems: 'center' }, - contentLabel: { color: '$iconColor', marginTop:4 }, + contentLabel: { color: '$iconColor', marginTop:4, textAlign:'left' }, weightInput: {width:80}, weightFormInput: { textAlign: 'center', color: '$primaryBlack' }, weightFormInputWrapper: { marginTop: 8 }, @@ -50,4 +51,7 @@ export default EStyleSheet.create({ alignSelf: 'flex-end', justifyContent: 'center', }, + thumbSelectContainer:{ + marginTop:12, + } }); diff --git a/src/screens/editor/children/thumbSelectionContent.tsx b/src/screens/editor/children/thumbSelectionContent.tsx index f051fa212..c5e87f64c 100644 --- a/src/screens/editor/children/thumbSelectionContent.tsx +++ b/src/screens/editor/children/thumbSelectionContent.tsx @@ -53,11 +53,11 @@ const ThumbSelectionContent = ({body, thumbIndex, onThumbSelection}: ThumbSelect return ( - + {intl.formatMessage({id:'editor.select_thumb'})} { needMore ? ( - Add more images to post + {intl.formatMessage({id:'editor.add_more_imgs'})} ):(