feat: optimize SMS notifications RTL.

This commit is contained in:
a.bouhuolia
2021-11-11 11:26:49 +02:00
parent 22069f4795
commit eb5a82d413
5 changed files with 32 additions and 11 deletions

View File

@@ -12,6 +12,8 @@ import { useSMSMessageDialogContext } from './SMSMessageDialogProvider';
import { SMSMessagePreview } from 'components';
import { getSMSUnits } from '../../NotifyViaSMS/utils';
import { whenRtl, whenLtr } from 'utils/styled-components';
/**
* SMS message form content.
*/
@@ -103,7 +105,15 @@ const FormPreview = styled.div`
display: flex;
flex-direction: column;
width: 45%;
padding-left: 25px;
margin-left: 25px;
border-left: 1px solid #dcdcdd;
${whenLtr(`
padding-left: 25px;
margin-left: 25px;
border-left: 1px solid #dcdcdd;
`)}
${whenRtl(`
padding-right: 25px;
margin-right: 25px;
border-right: 1px solid #dcdcdd;
`)}
`;

View File

@@ -42,7 +42,7 @@ export default function SMSMessageFormFields() {
intent={Intent.PRIMARY}
onClick={handleBtnClick}
>
Reset to default message.
<T id={'sms_message.edit_form.reset_to_default_message'} />
</ResetButton>
</>
}