From 4d63cb41ccac216cef995b04921fa8034def86fd Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 20 Oct 2017 15:54:41 +0200 Subject: [PATCH] Fix setting form-check class --- skins/elastic/styles/widgets/forms.less | 4 +++- skins/elastic/ui.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/skins/elastic/styles/widgets/forms.less b/skins/elastic/styles/widgets/forms.less index c2b9c346d..95b3ff67a 100644 --- a/skins/elastic/styles/widgets/forms.less +++ b/skins/elastic/styles/widgets/forms.less @@ -326,7 +326,9 @@ html.layout-phone { td.editfield { width: 99%; /* TODO */ } -.form-group { margin-bottom: .5rem; /* overwrites Bootstrap style */ } +.form-group { + margin-bottom: .5rem; /* overwrites Bootstrap style */ +} ul.proplist { diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index fb9d99ce0..0db4478a4 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -485,7 +485,7 @@ function rcube_elastic_ui() first.addClass('col-sm-4'); last.addClass('col-sm-8'); - if (last.find('[type=checkbox]').length) { + if (last.find('[type=checkbox]').length == 1) { row_classes.push('form-check'); } else if (!last.find('input,textarea,radio,select').length) {