From dc6737290c8bf0f0d4b9aaecded1e6341c3992a2 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Tue, 20 Apr 2021 11:36:22 +0000 Subject: [PATCH] [FIX] web_editor: ensure document filename doesn't overflow its cell The media modal's document tab has cells with icons and filenames. If the filename was too long, it would overflow its cell, which caused an ugly design glitch. This ensures an ellipsis on the filename when it is too long. closes odoo/odoo#69990 X-original-commit: 8a4f4bf04bd5e5f9cf827273ea27a189a43c2515 Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/scss/wysiwyg.scss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss index 8cd22dee945..ea76679db5f 100644 --- a/addons/web_editor/static/src/scss/wysiwyg.scss +++ b/addons/web_editor/static/src/scss/wysiwyg.scss @@ -243,6 +243,10 @@ body .modal { } } + .o_file_name { + @include o-text-overflow; + } + &:hover { .o_existing_attachment_optimize, .o_existing_attachment_remove { opacity: 1;