From 10c339708a818e93afee10d0ec5cf687fcc44844 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Frank=20Na=CC=88gler?= Date: Fri, 2 Oct 2015 22:43:12 +0200 Subject: [PATCH] [BUGFIX] Set max size of icons below select fields Resolves: #70320 Releases: master Change-Id: Ib00b04fcdd9957d926378dfd4b89a7f124307cf0 Reviewed-on: http://review.typo3.org/43751 Reviewed-by: Michael Oehlhof Tested-by: Michael Oehlhof Reviewed-by: Wouter Wolters Tested-by: Wouter Wolters --- Build/Resources/Public/Less/TYPO3/_element_tceforms.less | 7 +++++++ typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php | 2 +- typo3/sysext/t3skin/Resources/Public/Css/backend.css | 4 ++++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Build/Resources/Public/Less/TYPO3/_element_tceforms.less b/Build/Resources/Public/Less/TYPO3/_element_tceforms.less index cc4b425..ef223fa 100644 --- a/Build/Resources/Public/Less/TYPO3/_element_tceforms.less +++ b/Build/Resources/Public/Less/TYPO3/_element_tceforms.less @@ -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; + } +} diff --git a/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php index d86b3c7..7796c54 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php @@ -224,7 +224,7 @@ class SelectSingleElement extends AbstractFormElement { $selectIconRows = ceil(count($selectIcons) / $selectIconColumns); $selectIcons = array_pad($selectIcons, $selectIconRows * $selectIconColumns, ''); - $html[] = '
'; + $html[] = '
'; $html[] = ''; $html[] = ''; $html[] = ''; diff --git a/typo3/sysext/t3skin/Resources/Public/Css/backend.css b/typo3/sysext/t3skin/Resources/Public/Css/backend.css index acb79b8..8ba8faf 100644 --- a/typo3/sysext/t3skin/Resources/Public/Css/backend.css +++ b/typo3/sysext/t3skin/Resources/Public/Css/backend.css @@ -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; -- 2.1.4