[BUGFIX] Alignment issue in "View Item" window
authorTomas Norre Mikkelsen <tomasnorre@gmail.com>
Thu, 15 Sep 2011 22:32:29 +0000 (00:32 +0200)
committerHelmut Hummel <typo3@helmut-hummel.de>
Sat, 17 Sep 2011 18:13:21 +0000 (20:13 +0200)
The file name and dimension information need some space for better
separation in the "View Item" window.

Change-Id: I0d737d85b7444747c7292362a43f48528a0d4806
Resolves: #27602
Reviewed-on: http://review.typo3.org/4987
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
typo3/show_item.php
typo3/sysext/t3skin/stylesheets/structure/element_infopopup.css

index 92fda34..c625c97 100644 (file)
@@ -314,7 +314,7 @@ class SC_show_item {
                $fI = t3lib_div::split_fileref($this->file);
                $ext = $fI['fileext'];
 
-               $code = '';
+               $code = '<div class="fileInfoContainer">';
 
                        // Setting header:
                $fileName = t3lib_iconWorks::getSpriteIconForFile($ext) . '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.file', TRUE) . ':</strong> ' . $fI['file'];
@@ -323,10 +323,15 @@ class SC_show_item {
                } else {
                        $code.= $fileName;
                }
-               $code.=' &nbsp;&nbsp;<strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.filesize').':</strong> '.t3lib_div::formatSize(@filesize($this->file)).'<br />
+               $code.=' &nbsp;&nbsp;'
+                       . '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.filesize') . ':</strong> '
+                       . t3lib_div::formatSize(@filesize($this->file)) . '</div>
                        ';
                if (is_array($imgInfo)) {
-                       $code.= '<strong>'.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.dimensions').':</strong> '.$imgInfo[0].'x'.$imgInfo[1].' '.$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.pixels');
+                       $code.= '<div class="fileInfoContainer fileDimensions">'
+                               . '<strong>' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.dimensions') . ':</strong> '
+                               . $imgInfo[0] . 'x' . $imgInfo[1] . ' '
+                               . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:show_item.php.pixels') . '</div>';
                }
                $this->content.=$this->doc->section('',$code);
                $this->content.=$this->doc->divider(2);
index 9febe84..d10d4fc 100644 (file)
@@ -17,4 +17,8 @@ Information popup, show_item.php
 
 table#typo3-showitem {
        margin: 10px 0;
+}
+
+#typo3-show-item-php div.fileInfoContainer.fileDimensions {
+       margin-left: 18px;
 }
\ No newline at end of file