Enhance Event Rank Color System

This commit is contained in:
2025-12-26 16:54:16 -05:00
parent ed9487a5ad
commit 057aa31bf8
3 changed files with 30 additions and 14 deletions
@@ -49,9 +49,12 @@ else
<MudTd Class="@($"event-rank-{ii})")">
@if (st != null)
{
<span>@st.EventDefinition.ShortName&nbsp;
<EventAttributes EventDefinition="@st.EventDefinition"></EventAttributes>
</span>
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
<span style="@($"display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: {AppIcons.RankedEventColor(ii)}; flex-shrink: 0;")")></span>
<span>@st.EventDefinition.ShortName&nbsp;
<EventAttributes EventDefinition="@st.EventDefinition"></EventAttributes>
</span>
</MudStack>
}
</MudTd>
}
@@ -86,7 +89,10 @@ else
<MudTd Class="@eventClass">
@if (student != null)
{
@student.Item1.FirstName
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1">
<span style="@($"display: inline-block; width: 10px; height: 10px; border-radius: 50%; background-color: {AppIcons.RankedEventColor(student.Item2)}; flex-shrink: 0;")")></span>
@student.Item1.FirstName
</MudStack>
}
</MudTd>
}