[BUGFIX] Don't cut off icons in New Record wizard 12/42812/3
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:11:43 +0000 (10:11 +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/42812
Reviewed-by: Frans Saris <franssaris@gmail.com>
Tested-by: Frans Saris <franssaris@gmail.com>
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Tested-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Sprite/SimpleSpriteHandler.php

index ddb794b..4fd6623 100644 (file)
@@ -33,6 +33,7 @@ class SimpleSpriteHandler extends AbstractSpriteHandler {
 .t3-icon-###NAME### {
        background-position: 0px 0px !important;
        background-image: url(\'###IMAGE###\') !important;
+       background-size: contain;
 }
        ';