From 714c0edc0bd264873fd360cb89406494790d4894 Mon Sep 17 00:00:00 2001 From: "Didier (did)" Date: Mon, 4 Jan 2021 09:40:59 +0000 Subject: [PATCH] [FIX] mail: fix placeholder scrollbar with long name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, Chrome show a scrollbar when the placeholder is multilined. Overflow hidden will avoid the scrollbar and we place a nowrap on the placeholder text to avoid the multiline. task-2416058 closes odoo/odoo#65213 X-original-commit: dfbbb18f39f5e546bb8bea34e395bdf1c1b49dab Signed-off-by: Sébastien Theys (seb) Signed-off-by: Alexandre Kühn (aku) --- .../components/composer_text_input/composer_text_input.scss | 6 ++++++ 1 file changed, 6 insertions(+) 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 b9119a714d9..7bfd8aa4b12 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 @@ -22,6 +22,12 @@ border: none; overflow: auto; + &::placeholder { + white-space: nowrap; + overflow-x: hidden; + text-overflow: ellipsis; + } + &.o-composer-is-compact { // When composer is compact, textarea should not be rounded on the right as // buttons are glued to it