[BUGFIX] Set max size of icons below select fields 51/43751/3
authorFrank Nägler <frank.naegler@typo3.org>
Fri, 2 Oct 2015 20:43:12 +0000 (22:43 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 5 Oct 2015 19:42:21 +0000 (21:42 +0200)
Resolves: #70320
Releases: master
Change-Id: Ib00b04fcdd9957d926378dfd4b89a7f124307cf0
Reviewed-on: http://review.typo3.org/43751
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Build/Resources/Public/Less/TYPO3/_element_tceforms.less
typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index cc4b425..ef223fa 100644 (file)
@@ -288,3 +288,10 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
 .t3-form-field-label.t3-form-field-state-changed {
        color: #004fb0;
 }
+
+.table-icons {
+       td img {
+               max-width: 128px;
+               max-height: 128px;
+       }
+}
index d86b3c7..7796c54 100644 (file)
@@ -224,7 +224,7 @@ class SelectSingleElement extends AbstractFormElement {
                        $selectIconRows = ceil(count($selectIcons) / $selectIconColumns);
                        $selectIcons = array_pad($selectIcons, $selectIconRows * $selectIconColumns, '');
 
-                       $html[] = '<div class="t3js-forms-select-single-icons table-fit table-fit-inline-block">';
+                       $html[] = '<div class="t3js-forms-select-single-icons table-icons table-fit table-fit-inline-block">';
                        $html[] =       '<table class="table table-condensed table-white table-center">';
                        $html[] =               '<tbody>';
                        $html[] =                       '<tr>';
index acb79b8..8ba8faf 100644 (file)
@@ -11168,6 +11168,10 @@ div.t3-form-field-container:first-child .t3-form-field-label-flex {
 .t3-form-field-label.t3-form-field-state-changed {
   color: #004fb0;
 }
+.table-icons td img {
+  max-width: 128px;
+  max-height: 128px;
+}
 .list-tree,
 .list-tree ul {
   margin-left: 8px;