[TASK] Improve styling of Element Information popup 56/42156/6
authorJosef Glatz <jousch@gmail.com>
Fri, 31 Jul 2015 06:44:24 +0000 (08:44 +0200)
committerFrank Nägler <frank.naegler@typo3.org>
Fri, 23 Oct 2015 17:25:25 +0000 (19:25 +0200)
Add some space next to the avatar.

Change-Id: I5dbdd6f57ebe19cc21d19230518bdbe42de827a3
Releases: master
Resolves: #68660
Reviewed-on: https://review.typo3.org/42156
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Frank Nägler <frank.naegler@typo3.org>
Tested-by: Frank Nägler <frank.naegler@typo3.org>
Build/Resources/Public/Less/TYPO3/_element_table.less
typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php
typo3/sysext/t3skin/Resources/Public/Css/backend.css

index 0facac6..ec3256a 100644 (file)
@@ -114,7 +114,7 @@ table {
        .col-nowrap,
        .col-control,
        .col-clipboard {
-               white-space: nowrap;
+               white-space: nowrap!important;
        }
        .col-control,
        .col-clipboard {
index 74be181..69067f8 100644 (file)
@@ -396,16 +396,22 @@ class ElementInformationController
                     /** @var Avatar $avatar */
                     $avatar = GeneralUtility::makeInstance(Avatar::class);
                     $icon = $avatar->render($creatorRecord);
-
-                    $rowValue = '<span class="pull-left">' . $icon . '</span>' .
-                    '<strong>' . htmlspecialchars($GLOBALS['BE_USER']->user['username']) . '</strong><br />'
-                    . ($GLOBALS['BE_USER']->user['realName'] ? htmlspecialchars($GLOBALS['BE_USER']->user['realName']) : '');
+                    $rowValue = '
+                        <div class="media">
+                            <div class="media-left">
+                                ' . $icon . '
+                            </div>
+                            <div class="media-body">
+                                <strong>' . htmlspecialchars($GLOBALS['BE_USER']->user['username']) . '</strong><br>
+                                ' . ($GLOBALS['BE_USER']->user['realName'] ? htmlspecialchars($GLOBALS['BE_USER']->user['realName']) : '') . '
+                            </div>
+                        </div>';
                 }
             }
 
             $tableRows[] = '
                                <tr>
-                                       <th>' . rtrim($fieldLabel, ':') . '</th>
+                                       <th class="col-nowrap">' . rtrim($fieldLabel, ':') . '</th>
                                        <td>' . ($name === 'cruser_id' ? $rowValue : htmlspecialchars($rowValue)) . '</td>
                                </tr>';
         }
@@ -434,7 +440,7 @@ class ElementInformationController
             $itemLabel = $lang->sL(BackendUtility::getItemLabel($this->table, $name), true);
             $tableRows[] = '
                                <tr>
-                                       <th>' . $itemLabel . '</th>
+                                       <th class="col-nowrap">' . $itemLabel . '</th>
                                        <td>' . htmlspecialchars($itemValue) . '</td>
                                </tr>';
         }
index b9b4663..6cc6b42 100644 (file)
@@ -10702,7 +10702,7 @@ fieldset[disabled] .table .btn-default.active {
 .table .col-nowrap,
 .table .col-control,
 .table .col-clipboard {
-  white-space: nowrap;
+  white-space: nowrap!important;
 }
 .table .col-control,
 .table .col-clipboard {