userdetails page show medals always

This commit is contained in:
xiaomlove
2022-08-20 23:20:45 +08:00
parent a9fb862e24
commit b434214508
2 changed files with 23 additions and 19 deletions
+1 -1
View File
@@ -5675,7 +5675,7 @@ function msgalert($url, $text, $bgcolor = "red")
function build_medal_image(\Illuminate\Support\Collection $medals, $maxHeight = 200, $withActions = false): string
{
$medalImages = [];
$wrapBefore = '<div style="display: inline;">';
$wrapBefore = '<div style="display: flex;justify-content: center;align-items: baseline;margin-top: 10px;">';
$wrapAfter = '</div>';
foreach ($medals as $medal) {
$html = sprintf('<div style="display: inline"><img src="%s" title="%s" class="preview" style="max-height: %spx"/>', $medal->image_large, $medal->name, $maxHeight);