diff --git a/apps/common/main/lib/component/TreeView.js b/apps/common/main/lib/component/TreeView.js index 2b2ac7add4..ec4795d0e9 100644 --- a/apps/common/main/lib/component/TreeView.js +++ b/apps/common/main/lib/component/TreeView.js @@ -170,7 +170,7 @@ define([ initialize : function(options) { options.store = options.store || new Common.UI.TreeViewStore(); options.emptyItemText = options.emptyItemText || ''; - options.itemTemplate = options.itemTemplate || _.template([ + options.itemTemplate = options.itemTemplate || !Common.UI.isRTL() ? _.template([ '
', '<% if (hasSubItems) { %>', '
', @@ -183,6 +183,19 @@ define([ '
<%= Common.Utils.String.htmlEncode(name) %>
', '<% } %>', '
' + ].join('')) : _.template([ + '
', + '<% if (hasSubItems) { %>', + '
', + '<% } %>', + '<% if (isNotHeader) { %>', + '
<%= Common.Utils.String.htmlEncode(name) %>
', + '<% } else if (isEmptyItem) { %>', + '
' + options.emptyItemText + '
', + '<% } else { %>', + '
<%= Common.Utils.String.htmlEncode(name) %>
', + '<% } %>', + '
' ].join('')); Common.UI.DataView.prototype.initialize.call(this, options); }, diff --git a/apps/common/main/lib/template/CommentsPanel.template b/apps/common/main/lib/template/CommentsPanel.template index 5a0bb9a5a2..34ed295813 100644 --- a/apps/common/main/lib/template/CommentsPanel.template +++ b/apps/common/main/lib/template/CommentsPanel.template @@ -12,7 +12,7 @@
-
-
+
+
diff --git a/apps/common/main/resources/less/chat.less b/apps/common/main/resources/less/chat.less index 566e58cab7..6f68facb1a 100644 --- a/apps/common/main/resources/less/chat.less +++ b/apps/common/main/resources/less/chat.less @@ -20,6 +20,11 @@ margin-top: 5px; margin-bottom: 5px; right: 4px !important; + + .rtl & { + right: unset !important; + left: 4px !important; + } } #chat-title { @@ -60,6 +65,10 @@ height: 12px; border: 1px solid @border-toolbar-ie; border: 1px solid @border-toolbar; + + .rtl & { + margin: 0 0 3px 5px; + } } .name { @@ -119,6 +128,10 @@ border: 1px solid @border-toolbar; margin: 0 5px 3px 0; vertical-align: middle; + + .rtl & { + margin: 0 0 3px 5px; + } } .message { diff --git a/apps/common/main/resources/less/comments.less b/apps/common/main/resources/less/comments.less index c911a59e11..e4e0b2361f 100644 --- a/apps/common/main/resources/less/comments.less +++ b/apps/common/main/resources/less/comments.less @@ -23,6 +23,25 @@ .font-weight-bold(); margin-top: 2px; } + + #comments-btn-close { + float: right; + margin-left: 4px; + + .rtl & { + float: left; + margin-left: 0; + margin-right: 4px; + } + } + + #comments-btn-sort { + float: right; + + .rtl & { + float: left; + } + } } .messages-ct { @@ -44,6 +63,11 @@ margin-top: 5px; margin-bottom: 5px; right: 4px !important; + + .rtl & { + right: unset !important; + left: 4px !important; + } } .dataview-ct.inner { @@ -110,9 +134,19 @@ .btn { &.add { margin-left: 20px; + + .rtl & { + margin-left: 0; + margin-right: 20px; + } } &.cancel { margin-left: 7px; + + .rtl & { + margin-left: 0; + margin-right: 7px; + } } } } @@ -175,6 +209,10 @@ padding: 10px 65px 0 0px; height: 26px; cursor: default; + + .rtl & { + padding: 10px 0px 0 65px; + } } .color { @@ -184,6 +222,10 @@ border: @scaled-one-px-value solid @border-toolbar; margin: 0 5px 3px 0; vertical-align: middle; + + .rtl & { + margin: 0 0 3px 5px; + } } .user-name-colored { @@ -272,6 +314,12 @@ top: 0; margin: 11px 21px 10px 10px; height: 20px; + + .rtl & { + right: unset; + left: 0; + margin: 11px 10px 10px 21px; + } } .btns-reply-ct { @@ -280,6 +328,11 @@ top: 0; height: 30px; margin-top: 11px; + + .rtl & { + right: unset; + left: 0; + } } .reply-item-ct { @@ -291,6 +344,10 @@ div[class^=btn-] { float: left; cursor: pointer; + + .rtl & { + float: right; + } } .btn-edit,.btn-delete, .btn-resolve, .icon-resolve, .btn-resolve-check, .btn-accept, .btn-reject, .btn-goto { @@ -298,6 +355,10 @@ height: 16px; margin: 0 0 0 5px; background-color: transparent; + + .rtl & { + margin: 0 5px 0 0; + } } .icon-resolve { diff --git a/apps/common/main/resources/less/searchdialog.less b/apps/common/main/resources/less/searchdialog.less index e96e720eff..ac0dfd6fb9 100644 --- a/apps/common/main/resources/less/searchdialog.less +++ b/apps/common/main/resources/less/searchdialog.less @@ -132,6 +132,10 @@ #search-btn-close { float: right; + + .rtl & { + float: left; + } } } @@ -170,6 +174,11 @@ .search-nav-btns { display: inline-block; float: right; + + .rtl & { + float: left; + } + div { display: inline-block; } @@ -200,6 +209,11 @@ cursor: pointer; margin-left: 15px; + .rtl & { + margin-left: 0; + margin-right: 15px; + } + .search-options-txt { display: inline-block; padding: 5px 0; @@ -214,6 +228,13 @@ left: 0; cursor: pointer; margin-left: 8px; + + .rtl & { + margin-left: 0; + margin-right: 8px; + left: unset; + right: 0; + } } } @@ -234,6 +255,10 @@ } .search-options-caret { transform: rotate(270deg); + + .rtl & { + transform: rotate(90deg); + } } } diff --git a/apps/common/main/resources/less/treeview.less b/apps/common/main/resources/less/treeview.less index 059dfddff8..78b5875f49 100644 --- a/apps/common/main/resources/less/treeview.less +++ b/apps/common/main/resources/less/treeview.less @@ -79,8 +79,17 @@ left: 0; cursor: pointer; + .rtl & { + left: unset; + right: 0; + } + &.up { transform: rotate(270deg); + + .rtl & { + transform: rotate(90deg); + } } } } diff --git a/apps/documenteditor/main/app/view/Navigation.js b/apps/documenteditor/main/app/view/Navigation.js index 3fec05e5fd..d9ce8ce209 100644 --- a/apps/documenteditor/main/app/view/Navigation.js +++ b/apps/documenteditor/main/app/view/Navigation.js @@ -51,8 +51,8 @@ define([ '', @@ -110,7 +110,6 @@ define([ this.buttonNext = new Common.UI.Button({ parentEl: $('#spellcheck-next'), - style: 'margin-left: 5px;', cls: 'btn-toolbar bg-white', iconCls: 'toolbar__icon btn-nextitem', hint: this.txtNextTip, diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index 0694bfe193..9bd8e60420 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -889,6 +889,11 @@ &:last-child { width: 36%; } + + .rtl & { + padding-left: 0; + padding-right: 4px; + } } } .search-items { @@ -911,6 +916,11 @@ &:last-child { width: 36%; } + + .rtl & { + padding-left: 0; + padding-right: 4px; + } } } } diff --git a/apps/spreadsheeteditor/main/resources/less/spellcheck.less b/apps/spreadsheeteditor/main/resources/less/spellcheck.less index 2f7f4cebfd..f9f7b9d0f1 100644 --- a/apps/spreadsheeteditor/main/resources/less/spellcheck.less +++ b/apps/spreadsheeteditor/main/resources/less/spellcheck.less @@ -40,6 +40,11 @@ margin-top: 5px; margin-bottom: 5px; right: 4px !important; + + .rtl & { + right: unset !important; + left: 4px !important; + } } } } @@ -52,6 +57,15 @@ #spellcheck-next { display: inline-block; + + .btn { + margin-left: 5px; + + .rtl & { + margin-left: 0; + margin-right: 5px; + } + } } #spellcheck-suggestions-list { @@ -70,6 +84,11 @@ #spellcheck-ignore { margin-left: 9px; display: inline-block; + + .rtl & { + margin-left: 0; + margin-right: 9px; + } } #spellcheck-add-to-dictionary { @@ -86,6 +105,16 @@ #spellcheck-complete { display: flex; + + .btn-resolve { + display: inline-block; + margin-right: 10px; + + .rtl & { + margin-right: 0; + margin-left: 10px; + } + } } .btn-resolve {