summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/composer_text_input
diff options
context:
space:
mode:
authorXavier Dubuc <xdu@odoo.com>2020-07-27 10:26:28 +0000
committerAlexandre Kühn <aku@odoo.com>2020-08-21 10:45:54 +0000
commit4b879490dc8634b8b6533c9042b653fc7d342922 (patch)
treee6d589dd7c3821947ce69b2745dabdb8d2922935 /addons/mail/static/src/components/composer_text_input
parent7f06412484164a34b289624068e6b8d0795f6015 (diff)
[FIX] mail: fix some CSS in chat window and attachments
Also make rounded style for composer tool buttons. task-2282342 closes odoo/odoo#56282 X-original-commit: 307fa6877ad72fe0afb10f1b4e67ec573422b732 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/composer_text_input')
-rw-r--r--addons/mail/static/src/components/composer_text_input/composer_text_input.scss14
1 files changed, 11 insertions, 3 deletions
diff --git a/addons/mail/static/src/components/composer_text_input/composer_text_input.scss b/addons/mail/static/src/components/composer_text_input/composer_text_input.scss
index 81c3d446a57..95c03a073c9 100644
--- a/addons/mail/static/src/components/composer_text_input/composer_text_input.scss
+++ b/addons/mail/static/src/components/composer_text_input/composer_text_input.scss
@@ -17,16 +17,24 @@
.o_ComposerTextInput_textarea {
padding: 10px;
- max-height: 200px;
resize: none;
border-radius: $o-mail-rounded-rectangle-border-radius-lg;
border: none;
overflow: auto;
- // When composer is compact, textarea should not be rounded on the right as
- // buttons are glued to it
&.o-composer-is-compact {
+ // When composer is compact, textarea should not be rounded on the right as
+ // buttons are glued to it
border-top-right-radius: 0;
border-bottom-right-radius: 0;
+ // Chat window height should be taken into account to choose this value
+ // ideally this should be less than the third of chat window height
+ max-height: 100px;
+ }
+
+ &:not(.o-composer-is-compact) {
+ // Don't allow the input to take the whole height when it's not compact
+ // (like in chatter for example) but allow it to take some more place
+ max-height: 200px;
}
}