From 7c37a6f2a0220e780fa35f7f9c8dfa35ff718998 Mon Sep 17 00:00:00 2001
From: Andreas Fernandez <a.fernandez@scripting-base.de>
Date: Mon, 16 Nov 2015 11:29:07 +0100
Subject: [PATCH] [BUGFIX] Align icons in System Information Panel

Add the ``fa-fw`` class to enforce a fixed width for each icon to align the
labels next to the icons correctly.

Resolves: #71594
Releases: master
Change-Id: I274dbd195a72291d7ff2101f65c23d2eaabe01b8
Reviewed-on: https://review.typo3.org/44731
Reviewed-by: Mathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: Michael Oehlhof <typo3@oehlhof.de>
Tested-by: Michael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Daniel Lorenz <forge@extco.de>
Reviewed-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Josef Glatz <josef.glatz@typo3.org>
Tested-by: Daniel Lorenz <forge@extco.de>
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
---
 .../ToolbarItems/SystemInformationToolbarItem.php  | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php b/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
index 337de7d7d322..a2b858234681 100644
--- a/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
+++ b/typo3/sysext/backend/Classes/Backend/ToolbarItems/SystemInformationToolbarItem.php
@@ -150,7 +150,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
         $this->systemInformation[] = array(
             'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.phpversion', true),
             'value' => PHP_VERSION,
-            'icon' => '<span class="fa fa-code"></span>'
+            'icon' => '<span class="fa fa-code fa-fw"></span>'
         );
     }
 
@@ -164,7 +164,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
         $this->systemInformation[] = array(
             'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.database', true),
             'value' => $this->getDatabaseConnection()->getServerVersion(),
-            'icon' => '<span class="fa fa-database"></span>'
+            'icon' => '<span class="fa fa-database fa-fw"></span>'
         );
     }
 
@@ -180,7 +180,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
             'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.applicationcontext', true),
             'value' => (string)$applicationContext,
             'status' => $applicationContext->isProduction() ? InformationStatus::STATUS_OK : InformationStatus::STATUS_WARNING,
-            'icon' => '<span class="fa fa-tasks"></span>'
+            'icon' => '<span class="fa fa-tasks fa-fw"></span>'
         );
     }
 
@@ -197,7 +197,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
         $this->systemInformation[] = array(
             'title' => $languageService->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.composerMode', true),
             'value' => $languageService->sL('LLL:EXT:lang/locallang_core.xlf:labels.enabled', true),
-            'icon' => '<span class="fa fa-music"></span>'
+            'icon' => '<span class="fa fa-music fa-fw"></span>'
         );
     }
 
@@ -224,7 +224,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
             $this->systemInformation[] = array(
                 'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.gitrevision', true),
                 'value' => sprintf('%s [%s]', $revision, $branch),
-                'icon' => '<span class="fa fa-git"></span>'
+                'icon' => '<span class="fa fa-git fa-fw"></span>'
             );
         }
     }
@@ -250,7 +250,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
         $this->systemInformation[] = array(
             'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.operatingsystem', true),
             'value' => $kernelName . ' ' . php_uname('r'),
-            'icon' => '<span class="fa fa-' . htmlspecialchars($icon) . '"></span>'
+            'icon' => '<span class="fa fa-' . htmlspecialchars($icon) . ' fa-fw"></span>'
         );
     }
 
@@ -262,7 +262,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
         $this->systemInformation[] = array(
             'title' => $this->getLanguageService()->sL('LLL:EXT:lang/locallang_core.xlf:toolbarItems.sysinfo.webserver', true),
             'value' => htmlspecialchars($_SERVER['SERVER_SOFTWARE']),
-            'icon' => '<span class="fa fa-server"></span>'
+            'icon' => '<span class="fa fa-server fa-fw"></span>'
         );
     }
 
-- 
GitLab