From 8ef8be6be52e17b459f08231a27ff08d7ddc2ec3 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 18 Mar 2016 11:59:57 +0100 Subject: [PATCH] Keep share checkboxes together - removed leading spaces before markup which can affect rendering in some cases - added shareOption CSS class to group and keep share option checkbox + label - moved ".showCruds" arrow into the matching shareOption to keep the arrow together with the checkbox --- core/css/share.css | 5 ++ core/js/sharedialogshareelistview.js | 86 ++++++++++++++++------------ 2 files changed, 55 insertions(+), 36 deletions(-) diff --git a/core/css/share.css b/core/css/share.css index 55ee5996a7..047bb5eba5 100644 --- a/core/css/share.css +++ b/core/css/share.css @@ -63,6 +63,11 @@ white-space: normal; } +#shareWithList .shareOption { + white-space: nowrap; + display: inline-block; +} + #shareWithList .unshare img, #shareWithList .showCruds img { vertical-align:text-bottom; /* properly align icons */ } diff --git a/core/js/sharedialogshareelistview.js b/core/js/sharedialogshareelistview.js index 49580cc888..e4edbf24c0 100644 --- a/core/js/sharedialogshareelistview.js +++ b/core/js/sharedialogshareelistview.js @@ -16,42 +16,56 @@ var TEMPLATE = '' ;