From 76871e3f678db69e84be0280ad98385f71f7b0c8 Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Tue, 2 Aug 2016 13:52:34 +0200
Subject: [PATCH] [BUGFIX] Fix auto width in extension icon in EM

If an extension is using a svg icon with no explicit height/width obviously,
then the extension manager shows the icon on the full width of the
table column, making it not only inconsistent but impossible to read the
extension text.

The patch removes the "width: auto" style in CSS.

Resolves: #76381
Releases: master, 7.6
Change-Id: Idb9cfa9bd5720920f67b35d2dada6b21a469a1db
Reviewed-on: https://review.typo3.org/49308
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: David Steeb <david.steeb@b13.de>
Tested-by: David Steeb <david.steeb@b13.de>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
---
 Build/Resources/Public/Less/TYPO3/_module_extensionmanager.less | 2 +-
 typo3/sysext/backend/Resources/Public/Css/backend.css           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Build/Resources/Public/Less/TYPO3/_module_extensionmanager.less b/Build/Resources/Public/Less/TYPO3/_module_extensionmanager.less
index 73ea2a5861e1..d2b96df0222b 100644
--- a/Build/Resources/Public/Less/TYPO3/_module_extensionmanager.less
+++ b/Build/Resources/Public/Less/TYPO3/_module_extensionmanager.less
@@ -194,7 +194,7 @@
 
 	.ext-icon {
 		max-height: 16px;
-		width: auto;
+		max-width: 16px;
 	}
 
 	tr.installed td {
diff --git a/typo3/sysext/backend/Resources/Public/Css/backend.css b/typo3/sysext/backend/Resources/Public/Css/backend.css
index 77c9789bb6ed..5db0872c5dab 100644
--- a/typo3/sysext/backend/Resources/Public/Css/backend.css
+++ b/typo3/sysext/backend/Resources/Public/Css/backend.css
@@ -13222,7 +13222,7 @@ span.item-state-deleted {
 }
 .typo3-extension-list .ext-icon {
   max-height: 16px;
-  width: auto;
+  max-width: 16px;
 }
 .typo3-extension-list tr.installed td {
   background-color: #c8ffaa;
-- 
GitLab