[BUGFIX] Don't cut off icons in New Record wizard 36/42836/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Fri, 21 Aug 2015 13:05:00 +0000 (15:05 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Sat, 22 Aug 2015 08:12:14 +0000 (10:12 +0200)
If an icon larger than 16x16 pixels is used for the record icon in TCA,
it gets cutted and only the top left part is displayed. Apply proper
CSS rules to fix this behaviour.

Resolves: #69236
Releases: master, 6.2
Change-Id: I9f7643817f05fd6fba73b7884e70dbed2db84999
Reviewed-on: http://review.typo3.org/42836
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Sprite/SimpleSpriteHandler.php

index d774c0b..676d794 100644 (file)
@@ -35,6 +35,7 @@ class SimpleSpriteHandler extends \TYPO3\CMS\Backend\Sprite\AbstractSpriteHandle
 .t3-icon-###NAME### {
        background-position: 0px 0px !important;
        background-image: url(\'###IMAGE###\') !important;
+       background-size: contain;
 }
        ';