Skip to content

Commit

Permalink
Fix role whitelist margin being mx instead of ms
Browse files Browse the repository at this point in the history
  • Loading branch information
DrSmugleaf committed Feb 28, 2025
1 parent 1301e2d commit 41d6736
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SS14.Admin/Pages/Players/Info.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,20 @@
var timeText = $"{symbol} {requirement.Name} ({(int) time.TotalHours} / {(int) requirement.Time.TotalHours})";
if (requirement.Roles.Length > 0)
{
<details class="mx-3">
<details class="ms-3">
<summary>@timeText</summary>
@foreach (var role in requirement.Roles.OrderByDescending(r => GetTime([r])))
{
var roleTime = $"{(int) GetTime([role]).TotalHours}";
var roleName = role.Replace("CMJob", string.Empty);
<span class="mx-3">@roleTime h @roleName</span>
<span class="ms-3">@roleTime h @roleName</span>
<br/>
}
</details>
}
else
{
<span class="mx-3">@timeText</span>
<span class="ms-3">@timeText</span>
}
}

Expand Down

0 comments on commit 41d6736

Please sign in to comment.