From f1e1d061cd3ed5c9042b5be94d7e614907d10d63 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 22 Jun 2016 18:39:00 +0200 Subject: [PATCH] Fix taglist jumps into second line in mail compose --- mail/js/app.js | 5 ++++- mail/templates/mobile/app.css | 4 +--- mail/templates/pixelegg/app.css | 4 +--- mail/templates/pixelegg/app.less | 4 +--- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/mail/js/app.js b/mail/js/app.js index 5308332d0a..e7170f4b2f 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -4474,6 +4474,9 @@ app.classes.mail = AppJS.extend( */ revert: function (){ this.parent().find('.ms-sel-item').css('position','relative'); + var $input = this.parent().children('input'); + // Make sure input field not getting into second line after revert + $input.width($input.width()-10); return true; }, /** @@ -4548,7 +4551,7 @@ app.classes.mail = AppJS.extend( } var draggedValue = ui.draggable.text(); - + // index of draggable item in selection list var dValueKey = draggedValue; diff --git a/mail/templates/mobile/app.css b/mail/templates/mobile/app.css index 884dfbca7d..3414921c47 100644 --- a/mail/templates/mobile/app.css +++ b/mail/templates/mobile/app.css @@ -1080,9 +1080,7 @@ body { #mail-compose .mailComposeHeadersSection span.ms-close-btn, #mail-compose .mailComposeHeaders span.ms-edit-btn, #mail-compose .mailComposeHeadersSection span.ms-edit-btn { - width: auto; - background-repeat: no-repeat; - padding-right: 8px; + padding-right: 0px; } #mail-compose .mailComposeHeaders div, #mail-compose .mailComposeHeadersSection div { diff --git a/mail/templates/pixelegg/app.css b/mail/templates/pixelegg/app.css index 09840a37ae..d084b634ec 100755 --- a/mail/templates/pixelegg/app.css +++ b/mail/templates/pixelegg/app.css @@ -1068,9 +1068,7 @@ body { #mail-compose .mailComposeHeadersSection span.ms-close-btn, #mail-compose .mailComposeHeaders span.ms-edit-btn, #mail-compose .mailComposeHeadersSection span.ms-edit-btn { - width: auto; - background-repeat: no-repeat; - padding-right: 8px; + padding-right: 0px; } #mail-compose .mailComposeHeaders div, #mail-compose .mailComposeHeadersSection div { diff --git a/mail/templates/pixelegg/app.less b/mail/templates/pixelegg/app.less index 79cc322cb5..410a0b921d 100755 --- a/mail/templates/pixelegg/app.less +++ b/mail/templates/pixelegg/app.less @@ -333,9 +333,7 @@ body { } span.ms-close-btn, span.ms-edit-btn{ - width: auto; - background-repeat: no-repeat; - padding-right: 8px; + padding-right: 0px; } div{ max-width: 770px; }