[TASK] Improve doc header for smaller screens 02/51602/2
authorGeorg Ringer <georg.ringer@gmail.com>
Thu, 9 Feb 2017 04:22:06 +0000 (05:22 +0100)
committerBenni Mack <benni@typo3.org>
Sun, 12 Feb 2017 21:35:00 +0000 (22:35 +0100)
To make the doc header nicer on smaller (13") screens, the following
changes are applied:

- Remove the label of the language select box
- Remove the media query

Resolves: #79701
Releases: master
Change-Id: Ie3581c37f4169c89aa72aa3a429dbdf073901e0f
Reviewed-on: https://review.typo3.org/51602
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Riccardo De Contardi <erredeco@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
Build/Resources/Public/Less/Component/module.less
typo3/sysext/backend/Classes/Controller/EditDocumentController.php
typo3/sysext/backend/Classes/Controller/PageLayoutController.php
typo3/sysext/backend/Resources/Public/Css/backend.css

index e033e4a..45fe7c1 100644 (file)
@@ -78,9 +78,7 @@
                .form-group {
                        vertical-align: top;
                        margin: 0;
-                       @media (min-width: @screen-sm-min) {
-                               display: inline-block;
-                       }
+                       display: inline-block;
                        .form-control {
                                vertical-align: top;
                        }
index 02ee7c9..f22692a 100644 (file)
@@ -1607,9 +1607,6 @@ class EditDocumentController extends AbstractModule
                     }
                     $languageMenu = $this->moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->makeMenu();
                     $languageMenu->setIdentifier('_langSelector');
-                    $languageMenu->setLabel(htmlspecialchars($this->getLanguageService()->sL(
-                        'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language'
-                    )));
                     foreach ($langRows as $lang) {
                         if ($this->getBackendUser()->checkLanguageAccess($lang['uid'])) {
                             $newTranslation = isset($rowsByLang[$lang['uid']]) ? '' : ' [' . htmlspecialchars($this->getLanguageService()->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.new')) . ']';
index cdce673..dcd9087 100644 (file)
@@ -1290,7 +1290,6 @@ class PageLayoutController
             $lang = $this->getLanguageService();
             $languageMenu = $this->moduleTemplate->getDocHeaderComponent()->getMenuRegistry()->makeMenu();
             $languageMenu->setIdentifier('languageMenu');
-            $languageMenu->setLabel(htmlspecialchars($lang->sL('LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language')));
             foreach ($this->MOD_MENU['language'] as $key => $language) {
                 $menuItem = $languageMenu
                     ->makeMenuItem()
index 6de535e..09ec007 100644 (file)
@@ -8300,11 +8300,7 @@ div.dropdown-menu {
 .module-docheader .module-docheader-bar .form-group {
   vertical-align: top;
   margin: 0;
-}
-@media (min-width: 768px) {
-  .module-docheader .module-docheader-bar .form-group {
-    display: inline-block;
-  }
+  display: inline-block;
 }
 .module-docheader .module-docheader-bar .form-group .form-control {
   vertical-align: top;