[TASK] Allow multi-line module menu labels 58/29558/3
authorBenjamin Mack <benni@typo3.org>
Mon, 8 Sep 2014 21:40:22 +0000 (23:40 +0200)
committerMarkus Klein <klein.t3@reelworx.at>
Mon, 8 Sep 2014 22:32:32 +0000 (00:32 +0200)
Labels in the module menu cannot be in multiple
lines. this is especially a problem when the labels
are translated.

The patch introduces a new class for each
submodule item label and adds the proper CSS.

Resolves: #57590
Releases: 6.3
Change-Id: I37b6331d41bd1e6e014bf79596ad928430441f7e
Reviewed-on: http://review.typo3.org/29558
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/backend/Resources/Private/Templates/ModuleMenu/Main.html
typo3/sysext/t3skin/Resources/Public/Css/structure/module_menu.css

index 384686f..bf4190b 100644 (file)
@@ -9,7 +9,7 @@
                                                <span class="submodule-icon">
                                                        <f:format.raw>{subModule.icon.html}</f:format.raw>
                                                </span>
-                                               <span>{subModule.title}</span>
+                                               <span class="submodule-label">{subModule.title}</span>
                                        </a>
                                </li>
                        </f:for>
index 164213c..a08f90a 100644 (file)
@@ -48,11 +48,12 @@ Module menu
 }
 
 #typo3-menu li span.submodule-icon {
+       position: absolute;
+}
+
+#typo3-menu li span.submodule-label {
        display: block;
-       float: left;
-       vertical-align: top;
-       width: 20px;
-       margin-right: 6px;
+       margin-left: 26px;
 }
 
 #typo3-menu li ul {
@@ -67,7 +68,6 @@ Module menu
        display: block;
        margin-bottom: 1px;
        padding: 3px 0 3px 24px;
-       white-space: nowrap;
 }
 
 #typo3-menu li ul li a:hover,