From 76de389ea63a12ca718fbbe230f84c0e49b2f925 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Mon, 29 Aug 2022 11:42:45 +0000 Subject: [PATCH] [FIX] website: break too long table of content generated entries Before this commit if a Table of Content entry was a too long word without spaces, it span beyond the width of the menu part of the Table of Content block. Note that in Chrome, during Edit mode the words are already split across several lines because the `contenteditable="true"` of the `#wrap` node applies some built-in extra styles (not from user agent stylesheet) among which `overflow-wrap: break-word;`. After this commit long words are split across several lines. task-2965279 closes odoo/odoo#104559 X-original-commit: ef7174e16663036d3598122d4abdcd5eab0189a0 Signed-off-by: Romain Derie (rde) --- addons/website/static/src/snippets/s_table_of_content/000.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/addons/website/static/src/snippets/s_table_of_content/000.scss b/addons/website/static/src/snippets/s_table_of_content/000.scss index bc238f000dd..4f4b83377f6 100644 --- a/addons/website/static/src/snippets/s_table_of_content/000.scss +++ b/addons/website/static/src/snippets/s_table_of_content/000.scss @@ -11,6 +11,8 @@ } } &.s_table_of_content_vertical_navbar .s_table_of_content_navbar { + overflow-wrap: break-word; + > a.list-group-item-action { background: none; color: inherit;