From a288cb04123965de6db9986f43b2a6b76de0333d Mon Sep 17 00:00:00 2001
From: LucasC <lucas.charpentier@xwiki.com>
Date: Tue, 27 Aug 2024 09:07:36 +0200
Subject: [PATCH] XWIKI-14032: The long names of submenus are showing out of
 the menu box (not wrapped) and the name of the submenus that use plain text
 and don't have other submenus don't have left margins (#3033)

* Added overflow wrap in words
* Added padding for all items
* Removed unused styles

(cherry picked from commit c17b9bd5435a325c2cccff13165c5a6cc3d17d57)
---
 .../src/main/resources/Menu/MenuMacro.xml                   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/xwiki-platform-core/xwiki-platform-menu/xwiki-platform-menu-ui/src/main/resources/Menu/MenuMacro.xml b/xwiki-platform-core/xwiki-platform-menu/xwiki-platform-menu-ui/src/main/resources/Menu/MenuMacro.xml
index fd97728a1ae..ceca1908aed 100644
--- a/xwiki-platform-core/xwiki-platform-menu/xwiki-platform-menu-ui/src/main/resources/Menu/MenuMacro.xml
+++ b/xwiki-platform-core/xwiki-platform-menu/xwiki-platform-menu-ui/src/main/resources/Menu/MenuMacro.xml
@@ -812,19 +812,19 @@
         margin-top: 0;
         border-top-right-radius: 0;
         border-top-left-radius: 0;
+        overflow-wrap: break-word;
+        hyphens: auto;
         li {
           /* Text inside menu */
           color: @dropdown-link-color;
+          padding: 3px 20px;
           /* Links inside menu */
           a {
             display: block;
-            padding: 3px 20px;
             clear: both;
             font-weight: normal;
             line-height: @line-height-base;
             color: @dropdown-link-color;
-            overflow: hidden;
-            text-overflow: ellipsis; // Displaying ... if the text is too long
             &amp;:hover, &amp;:focus-within {
               /* &amp;:extend(.dropdown-menu&gt;li&gt;a:hover); */
               text-decoration: none;
-- 
GitLab