diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index 9c4fc416123..566ff61253e 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -50,11 +50,11 @@ } /* Left-side CSS */ -.oe_mail_actions { +.oe_mail_recthread_actions { margin-bottom: 10px; } -.oe_mail_followers { +.oe_mail_recthread_followers { margin-bottom: 10px; } @@ -93,6 +93,7 @@ div.oe_mail_thread_act { white-space: normal; margin-bottom: 5px; + padding: 4px; } div.oe_mail_thread_display { @@ -109,7 +110,7 @@ div.oe_mail_thread_more { border-bottom: 1px solid #D2D9E7; } -div.oe_mail_thread_msg { +li.oe_mail_thread_msg { padding: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px; @@ -118,15 +119,15 @@ div.oe_mail_thread_msg { border-radius: 4px; } -div.notification { +li.notification { background: #E0E0E0; } -div.email { +li.email { background: #E0E0E0; } -div.oe_mail_thread_msg:after, div.oe_mail_thread_act:after { +li.oe_mail_thread_msg:after, div.oe_mail_thread_act:after { content: ""; display: block; clear: both; @@ -176,6 +177,16 @@ div.oe_mail_thread_msg:after, div.oe_mail_thread_act:after { /* Styling (should be openerp) */ /* ------------------------------ */ +ul.oe_mail { + padding: 0; + margin: 0; +} + +li.oe_mail { + list-style-type: none; + margin-bottom: 2px; +} + input.oe_mail, textarea.oe_mail { width: 100%; padding: 4px; diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index e18d96fd595..ab92f0ee654 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -446,7 +446,7 @@ openerp.mail = function(session) { display_subscribers: function (records) { var self = this; - var sub_node = this.$element.find('div.oe_mail_followers') + var sub_node = this.$element.find('div.oe_mail_recthread_followers') sub_node.empty(); $('
').html('Followers (' + records.length + ')').appendTo(sub_node); _(records).each(function (record) { @@ -475,7 +475,7 @@ openerp.mail = function(session) { this.see_sub = 1 - this.see_sub; if (this.see_sub == 1) { this.$element.find('button.oe_mail_button_followers').html('Hide followers'); } else { this.$element.find('button.oe_mail_button_followers').html('Display followers'); } - this.$element.find('div.oe_mail_followers').toggle(); + this.$element.find('div.oe_mail_recthread_followers').toggle(); }, thread_get_avatar_mini: function(model, field, id) { diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index d6558eb2c14..70d3f1ef6f6 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -23,16 +23,16 @@You have loaded all messages in this thread.