From 7b53d0aa5af567d273738064f38c8e0190e7b28f Mon Sep 17 00:00:00 2001 From: iriman Date: Sun, 13 Jan 2019 19:43:32 +0330 Subject: [PATCH 1/2] [RTL] pick appropriate class for `.field-help-title > h2` --- modules/ui/field_help.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ui/field_help.js b/modules/ui/field_help.js index 6289180dd..fcc54f42d 100644 --- a/modules/ui/field_help.js +++ b/modules/ui/field_help.js @@ -4,7 +4,7 @@ import { } from 'd3-selection'; import marked from 'marked'; -import { t } from '../util/locale'; +import { t, textDirection } from '../util/locale'; import { svgIcon } from '../svg'; import { icon } from './intro/helper'; @@ -197,7 +197,7 @@ export function uiFieldHelp(context, fieldName) { titleEnter .append('h2') - .attr('class', 'fl') + .attr('class', ((textDirection === 'rtl') ? 'fr' : 'fl')) .text(t('help.field.' + fieldName + '.title')); titleEnter From a8fb9fc62238e0689fbde33d22c685a6eef8fe12 Mon Sep 17 00:00:00 2001 From: iriman Date: Sun, 13 Jan 2019 20:11:54 +0330 Subject: [PATCH 2/2] [RTL] right padding for `.member-entity-name` --- css/80_app.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/css/80_app.css b/css/80_app.css index b15ec1438..ae4c2c8ab 100644 --- a/css/80_app.css +++ b/css/80_app.css @@ -2275,6 +2275,12 @@ div.combobox { padding-left: 10px; } +[dir='rtl'] .raw-member-editor .member-row .member-entity-name, +[dir='rtl'] .raw-membership-editor .member-row .member-entity-name { + padding-left:0; + padding-right: 10px; +} + .form-field-input-member > input.member-role { border-radius: 0 0 0 4px; }