Alignement des dates
This commit is contained in:
parent
5e7c9597cd
commit
d89455d86a
@ -163,7 +163,7 @@ class folder extends common
|
||||
if ($showDetails) {
|
||||
$fileSize = filesize($fileFullPath);
|
||||
$fileSizeFormatted = $this->formatSizeUnits($fileSize);
|
||||
$fileInfo = "<span class='file-info'> " . date("d-m-Y H:i", filemtime($fileFullPath)) . " - $fileSizeFormatted</span>";
|
||||
$fileInfo = "<div class='file-info-container'>" . date("d-m-Y H:i", filemtime($fileFullPath)) . " - $fileSizeFormatted</div>";
|
||||
}
|
||||
$items .= "<li class='file'><a href='$fileFullPath' data-lity>$file</a>$fileInfo</li>";
|
||||
}
|
||||
@ -180,6 +180,7 @@ class folder extends common
|
||||
|
||||
|
||||
|
||||
|
||||
private function formatSizeUnits($bytes)
|
||||
{
|
||||
$units = array('octest', 'Ko', 'Mo', 'Go', 'To');
|
||||
|
@ -55,7 +55,11 @@
|
||||
margin-left: -40px;
|
||||
}
|
||||
|
||||
/* Style pour les informations de fichier */
|
||||
.file-info {
|
||||
|
||||
.file-info-container {
|
||||
display: flex;
|
||||
float: right;
|
||||
align-content: left;
|
||||
/* Ajout d'une largeur fixe à la div */
|
||||
width: 200px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user