diff --git a/addons/mail/static/src/core_ui/message.js b/addons/mail/static/src/core_ui/message.js index 8391a2abb4b..f6d239f2563 100644 --- a/addons/mail/static/src/core_ui/message.js +++ b/addons/mail/static/src/core_ui/message.js @@ -153,8 +153,9 @@ export class Message extends Component { this.props.thread, this.props.message ), - "o-squashed pt-1": this.props.squashed, - "mt-1": !this.props.squashed && this.props.thread, + "o-squashed pb-1": this.props.squashed, + "py-1": !this.props.squashed, + "mt-2": !this.props.squashed && this.props.thread, "px-3": !this.props.isInChatWindow, "px-1": this.props.isInChatWindow, "opacity-50": this.props.messageToReplyTo?.isNotSelected( diff --git a/addons/mail/static/src/core_ui/message.xml b/addons/mail/static/src/core_ui/message.xml index e29112f2b5d..333387dc2c8 100644 --- a/addons/mail/static/src/core_ui/message.xml +++ b/addons/mail/static/src/core_ui/message.xml @@ -3,7 +3,7 @@ -
-
+
@@ -89,7 +89,7 @@ }" t-attf-class="{{ isAlignedRight ? 'rounded-start-3' : 'rounded-end-3' }}"/>
diff --git a/addons/mail/static/src/core_ui/primary_variables.scss b/addons/mail/static/src/core_ui/primary_variables.scss index 88cb5851a9e..bac93d107f7 100644 --- a/addons/mail/static/src/core_ui/primary_variables.scss +++ b/addons/mail/static/src/core_ui/primary_variables.scss @@ -1,6 +1,6 @@ $o-mail-Avatar-size: 36px !default; $o-mail-Avatar-sizeSmall: 24px !default; -$o-mail-ChatWindow-width: 340px !default; +$o-mail-ChatWindow-width: 360px !default; // same value as CHAT_WINDOW_WIDTH // Needed because $border-radius variations are all set to 0 in enterprise. $o-RoundedRectangle-small: .2rem !default; $o-RoundedRectangle-large: 3 * $o-RoundedRectangle-small !default; diff --git a/addons/mail/static/src/scss/variables/primary_variables.scss b/addons/mail/static/src/scss/variables/primary_variables.scss index ec2756a8dad..6f92703606d 100644 --- a/addons/mail/static/src/scss/variables/primary_variables.scss +++ b/addons/mail/static/src/scss/variables/primary_variables.scss @@ -1,5 +1,5 @@ $o-mail-Avatar-size: 42px !default; -$o-mail-ChatWindow-width: 340px !default; +$o-mail-ChatWindow-width: 360px !default; // same value as CHAT_WINDOW_WIDTH $o-mail-Chatter-mobile-gap: 2% !default; $o-mail-sidebar-icon-opacity: 0.7 !default; $o-mail-Discuss-inspector: 250px !default; diff --git a/addons/mail/static/src/web/chat_window/chat_window_service.js b/addons/mail/static/src/web/chat_window/chat_window_service.js index 41debbd14dd..a7c9534826e 100644 --- a/addons/mail/static/src/web/chat_window/chat_window_service.js +++ b/addons/mail/static/src/web/chat_window/chat_window_service.js @@ -7,7 +7,7 @@ import { registry } from "@web/core/registry"; export const CHAT_WINDOW_END_GAP_WIDTH = 10; // for a single end, multiply by 2 for left and right together. export const CHAT_WINDOW_INBETWEEN_WIDTH = 5; -export const CHAT_WINDOW_WIDTH = 340; +export const CHAT_WINDOW_WIDTH = 360; // same value as $o-mail-ChatWindow-width export const CHAT_WINDOW_HIDDEN_WIDTH = 55; export class ChatWindowService {