[TASK] Make list of field selector in record listview scrollable 63/42463/5
authorFrank Nägler <frank.naegler@typo3.org>
Sun, 9 Aug 2015 18:14:57 +0000 (20:14 +0200)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Sun, 16 Aug 2015 18:11:10 +0000 (20:11 +0200)
Resolves: #68889
Releases: master
Related: #62323
Change-Id: I77c578f34c30bcbd5793d32ed06604cdf548e17f
Reviewed-on: http://review.typo3.org/42463
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Build/Resources/Public/Less/TYPO3/_element_fieldselectbox.less
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 3ad2769..04338d6 100644 (file)
@@ -1,12 +1,18 @@
 //
 // Database Recordlist fieldSelectBox
 //
-.fieldSelectBox table {
-  .col-title {
-    padding: 0 @padding-base-vertical;
-  }
-  .label-block {
-    line-height: 32px;
-    height: 32px;
-  }
+.fieldSelectBox {
+       .table-scrollable {
+               overflow: auto;
+               max-height: 6 * ((@line-height-base * @font-size-base) + 4px + (2 * @padding-base-horizontal) + 1px);
+       }
+       table {
+               .col-title {
+                       padding: 0 @padding-base-vertical;
+               }
+               .label-block {
+                       line-height: 32px;
+                       height: 32px;
+               }
+       }
 }
index a175220..4177c95 100644 (file)
@@ -1716,7 +1716,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList {
                // Table with the field selector::
                $content = $formElements[0] . '
                        <input type="hidden" name="displayFields[' . $table . '][]" value="">
-                       <div class="table-fit">
+                       <div class="table-fit table-scrollable">
                                <table border="0" cellpadding="0" cellspacing="0" class="table table-transparent table-hover">
                                        <thead>
                                                <tr>
index 41db30d..6b83531 100644 (file)
@@ -11186,6 +11186,10 @@ body#ext-backend-Modules-FileSystemNavigationFrame-index-php {
 .pagination-block {
   display: block;
 }
+.fieldSelectBox .table-scrollable {
+  overflow: auto;
+  max-height: 210px;
+}
 .fieldSelectBox table .col-title {
   padding: 0 6px;
 }