Skip to content

Commit c990e25

Browse files
committed
Issues-240
1 parent 2707658 commit c990e25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

class.groups.plugin.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,14 @@ private function formatMediaData($mediaData){
707707
return '';
708708
}
709709

710-
$output = '<span>Attachments:</span>';
710+
$output = '<span>Attachments:</span><br/>';
711711
foreach ($mediaData as $mediaItem) {
712712
$name = val('Name', $mediaItem);
713713
$path = val('Path', $mediaItem);
714+
$size = val('Size', $mediaItem);
715+
$formattedSize = Gdn_Upload::formatFileSize($size);
714716
$link = anchor($name, $path, ['rel' => 'noopener noreferrer', 'target' => '_blank']);
715-
$output .= sprintf('<span>%s</span>&nbsp;', $link);
717+
$output .= sprintf('<span style="white-space: nowrap">%s (%s)</span><br/>', $link, $formattedSize);
716718
}
717719
return $output;
718720
}

0 commit comments

Comments
 (0)