From e5cd25e3284b4901d9b61171acf8f03138709f26 Mon Sep 17 00:00:00 2001 From: Reinaldo de Souza Jr Date: Wed, 11 Nov 2015 14:25:04 -0200 Subject: Align second line of email addresses to the beginning of the first line Fixes #514 --- .../app/js/mail_view/ui/recipients/recipients.js | 5 +++-- web-ui/app/scss/_mixins.scss | 14 ++++++++++++- web-ui/app/templates/compose/recipients.hbs | 24 ++++++++++++++++------ 3 files changed, 34 insertions(+), 9 deletions(-) (limited to 'web-ui/app') diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients.js b/web-ui/app/js/mail_view/ui/recipients/recipients.js index 3d756bd5..2caa8d14 100644 --- a/web-ui/app/js/mail_view/ui/recipients/recipients.js +++ b/web-ui/app/js/mail_view/ui/recipients/recipients.js @@ -32,7 +32,8 @@ define( function recipients() { this.defaultAttrs({ - navigationHandler: '.recipients-navigation-handler' + navigationHandler: '.recipients-navigation-handler', + recipientsList: '.recipients-list' }); function getAddresses(recipients) { @@ -85,7 +86,7 @@ define( }; this.addRecipient = function(recipient) { - var newRecipient = Recipient.prototype.renderAndPrepend(this.$node, recipient); + var newRecipient = Recipient.prototype.renderAndPrepend(this.$node.find(this.attr.recipientsList), recipient); this.attr.recipients.push(newRecipient); }; diff --git a/web-ui/app/scss/_mixins.scss b/web-ui/app/scss/_mixins.scss index 0e1edf66..1f3e618e 100644 --- a/web-ui/app/scss/_mixins.scss +++ b/web-ui/app/scss/_mixins.scss @@ -176,13 +176,25 @@ box-sizing: border-box; position: relative; - .recipients-label { + .compose-column-label { width: 5%; + display: inline-block; + } + + .compose-column-recipients { + width: 95%; + display: inline-block; + } + + .recipients-label { + width: 100%; + height: 100%; } .recipients-navigation-handler { z-index: -1; position: absolute; + top: -200px; } .twitter-typeahead { diff --git a/web-ui/app/templates/compose/recipients.hbs b/web-ui/app/templates/compose/recipients.hbs index effe48e2..6dbed714 100644 --- a/web-ui/app/templates/compose/recipients.hbs +++ b/web-ui/app/templates/compose/recipients.hbs @@ -1,19 +1,31 @@ -- cgit v1.2.3