summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntoine Guenet <age@odoo.com>2021-04-20 11:36:22 +0000
committerAntoine Guenet <age@odoo.com>2021-04-28 09:27:42 +0000
commit5994c4dfb229f3023a89e920a97efee38828f034 (patch)
tree8be0031da8de365fe72d4519aa0511fcec83913b
parent978853a6355e36e81752bf0714102f519a6a7931 (diff)
[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#69977 X-original-commit: 8a4f4bf04bd5e5f9cf827273ea27a189a43c2515 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
-rw-r--r--addons/web_editor/static/src/scss/wysiwyg.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/scss/wysiwyg.scss b/addons/web_editor/static/src/scss/wysiwyg.scss
index 7ffce40308a..429da03a06f 100644
--- a/addons/web_editor/static/src/scss/wysiwyg.scss
+++ b/addons/web_editor/static/src/scss/wysiwyg.scss
@@ -286,6 +286,10 @@ body .modal {
}
}
+ .o_file_name {
+ @include o-text-overflow;
+ }
+
&:hover {
.o_existing_attachment_optimize, .o_existing_attachment_remove {
opacity: 1;