summaryrefslogtreecommitdiff
path: root/addons/mail/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/mail/static/src')
-rw-r--r--addons/mail/static/src/js/chatter.js4
-rw-r--r--addons/mail/static/src/scss/chatter.scss21
-rw-r--r--addons/mail/static/src/scss/composer.scss3
3 files changed, 24 insertions, 4 deletions
diff --git a/addons/mail/static/src/js/chatter.js b/addons/mail/static/src/js/chatter.js
index bc5d18a4150..968242ffe6a 100644
--- a/addons/mail/static/src/js/chatter.js
+++ b/addons/mail/static/src/js/chatter.js
@@ -81,6 +81,7 @@ var Chatter = Widget.extend({
var nodeOptions = fieldsInfo[mailFields.mail_thread].options || {};
this.hasLogButton = options.display_log_button || nodeOptions.display_log_button;
this.postRefresh = nodeOptions.post_refresh || 'never';
+ this.reloadOnUploadAttachment = this.postRefresh === 'always';
}
},
/**
@@ -577,6 +578,9 @@ var Chatter = Widget.extend({
* @private
*/
_onReloadAttachmentBox: function () {
+ if (this.reloadOnUploadAttachment) {
+ this.trigger_up('reload');
+ }
this._reloadAttachmentBox();
},
/**
diff --git a/addons/mail/static/src/scss/chatter.scss b/addons/mail/static/src/scss/chatter.scss
index b670e5b92d0..5b503966706 100644
--- a/addons/mail/static/src/scss/chatter.scss
+++ b/addons/mail/static/src/scss/chatter.scss
@@ -21,11 +21,11 @@
position: relative;
float: right;
flex: 1 1 auto;
+ height: $o-statusbar-height;
.o_chatter_button_attachment {
- height: $o-statusbar-height - 2px;
+ height: $o-statusbar-height;
float: right;
- padding: 0px;
margin-right: 25px;
.fa-paperclip, .o_chatter_attachment_button_count {
@@ -33,15 +33,20 @@
}
}
.o_followers {
- height: $o-statusbar-height + 1;
+ height: $o-statusbar-height;
border-bottom: 1px solid transparent;
flex: 0 1 auto;
}
}
> .btn {
- height: $o-statusbar-height + 1;
+ height: $o-statusbar-height;
border: 1px solid transparent;
}
+ .btn {
+ @extend .text-nowrap;
+ padding-right: $btn-padding-x;
+ padding-left: $btn-padding-x;
+ }
}
@@ -60,3 +65,11 @@
}
}
}
+
+@include media-breakpoint-down(sm) {
+ .o_chatter .o_chatter_topbar > .o_topbar_right_area {
+ .o_chatter_button_attachment {
+ margin-right: initial;
+ }
+ }
+}
diff --git a/addons/mail/static/src/scss/composer.scss b/addons/mail/static/src/scss/composer.scss
index 9dbdf8fde89..802236afd73 100644
--- a/addons/mail/static/src/scss/composer.scss
+++ b/addons/mail/static/src/scss/composer.scss
@@ -142,6 +142,9 @@
&:not(.o_chat_inline_composer) {
flex-flow: row wrap;
+ .o_composer_container {
+ max-width: 100%;
+ }
.o_composer_container, .o_composer_button_send {
flex: 1 0 100%;
}