This commit is contained in:
beo3000 2026-01-08 18:00:42 +01:00
parent 31bbaaf70a
commit 383db346eb
2 changed files with 16 additions and 13 deletions

View File

@ -64,8 +64,9 @@
</MudText> </MudText>
@* Preview tree structure *@ @* Preview tree structure *@
<MudExpansionPanel Text="Baumvorschau" Class="mt-4"> @* <div @onclick:stopPropagation="true"> *@
<MudStack> @* <MudExpansionPanel Text="Baumvorschau" Class="mt-4" @bind-IsExpanded="_previewExpanded"> *@
@* <MudStack>
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key)) @foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
{ {
<MudText Typo="Typo.body2"> <MudText Typo="Typo.body2">
@ -75,8 +76,9 @@
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2"> <MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
</MudText> </MudText>
</MudStack> </MudStack> *@
</MudExpansionPanel> @* </MudExpansionPanel> *@
@* </div> *@
</MudPaper> </MudPaper>
@code { @code {
@ -91,6 +93,7 @@
private ChristmasTreeSetupOptions _options = new(); private ChristmasTreeSetupOptions _options = new();
private bool _hasExpensePointTrigger = true; private bool _hasExpensePointTrigger = true;
private bool _previewExpanded;
protected override async Task OnInitializedAsync() protected override async Task OnInitializedAsync()
{ {

View File

@ -80,7 +80,7 @@
@foreach (var evt in GetAssignedEvents(context.AssignedEvents)) @foreach (var evt in GetAssignedEvents(context.AssignedEvents))
{ {
<MudChip T="string" Size="Size.Small" Color="GetEventColor(evt)" Variant="Variant.Outlined" Class="mr-1"> <MudChip T="string" Size="Size.Small" Color="GetEventColor(evt)" Variant="Variant.Outlined" Class="mr-1">
@(_ = Term.GetThrowEventName(evt)) @(_ = Term.GetThrowEventName(evt).Result)
</MudChip> </MudChip>
} }
</MudTd> </MudTd>