add server game group collapse to advanced stats

This commit is contained in:
RaidMax 2023-04-07 21:38:41 -05:00
parent 388434133b
commit d0911b7b8a
2 changed files with 4 additions and 2 deletions

View File

@ -385,7 +385,9 @@
IsLink = true,
Reference = Url.Action("Advanced", "ClientStatistics", new { serverId = server.Endpoint }),
Title = server.Name.StripColors(),
IsActive = Model.ServerEndpoint == server.Endpoint
IsActive = Model.ServerEndpoint == server.Endpoint,
IsCollapse = true,
Meta = server.Game.ToString()
}).Prepend(new SideContextMenuItem
{
IsLink = true,

View File

@ -25,7 +25,7 @@
@foreach (var group in groupedItems)
{
<details class="collapse-panel mt-10 mb-10" @(index == 0 ? "open" : "")>
<details class="collapse-panel mt-0 pb-10 pt-10 pl-20 border-left" @(index == 0 ? "open" : "")>
<summary class="collapse-header">
@ViewBag.Localization[$"GAME_{group.Key}"]
</summary>