diff --git a/sao/src/sao.less b/sao/src/sao.less index 3bde24d6d3..fde55542dc 100644 --- a/sao/src/sao.less +++ b/sao/src/sao.less @@ -631,14 +631,11 @@ html.accesskey { padding: 0 2px; position: absolute; text-transform: uppercase; - margin: 0 -1em; + left: -1em; + right: 0; z-index: 5; } - input[accesskey][type="checkbox"]:after { - background-color: initial; - } - *[accesskey] ~ span[data-accesskey] { float: right; position: relative; @@ -652,11 +649,15 @@ html.accesskey { content: attr(accesskey); } - input[accesskey][type="checkbox"], - input[accesskey][type="checkbox"], - select[accesskey] { - & ~ span[data-accesskey] { - bottom: 1em; + &[dir="rtl"] { + *[accesskey] ~ span[data-accesskey]:after, + *[accesskey]:after { + left: 0; + right: -1em; + } + + *[accesskey] ~ span[data-accesskey] { + float: left; } } } diff --git a/sao/src/view/form.js b/sao/src/view/form.js index a6ca70a50a..1708f535d5 100644 --- a/sao/src/view/form.js +++ b/sao/src/view/form.js @@ -2256,11 +2256,13 @@ function eval_pyson(value){ this.el = jQuery('
', { 'class': this.class_ }); + this.group = jQuery('
', { + 'class': 'input-group input-group-sm' + }).css('width', '100%').appendTo(this.el); this.select = this.labelled = jQuery('', { 'type': 'checkbox', 'class': 'form-control input-sm mousetrap', 'name': attributes.name, - }).appendTo(this.el); + }).appendTo(this.group); this.input.change(this.focus_out.bind(this)); this.input.click(function() { // Dont trigger click if field is readonly as readonly has no