ui fixes
This commit is contained in:
parent
31bbaaf70a
commit
383db346eb
|
|
@ -64,19 +64,21 @@
|
|||
</MudText>
|
||||
|
||||
@* Preview tree structure *@
|
||||
<MudExpansionPanel Text="Baumvorschau" Class="mt-4">
|
||||
<MudStack>
|
||||
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
|
||||
{
|
||||
<MudText Typo="Typo.body2">
|
||||
@num: @(new string('●', count))
|
||||
@* <div @onclick:stopPropagation="true"> *@
|
||||
@* <MudExpansionPanel Text="Baumvorschau" Class="mt-4" @bind-IsExpanded="_previewExpanded"> *@
|
||||
@* <MudStack>
|
||||
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
|
||||
{
|
||||
<MudText Typo="Typo.body2">
|
||||
@num: @(new string('●', count))
|
||||
</MudText>
|
||||
}
|
||||
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
|
||||
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
|
||||
</MudText>
|
||||
}
|
||||
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
|
||||
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
|
||||
</MudText>
|
||||
</MudStack>
|
||||
</MudExpansionPanel>
|
||||
</MudStack> *@
|
||||
@* </MudExpansionPanel> *@
|
||||
@* </div> *@
|
||||
</MudPaper>
|
||||
|
||||
@code {
|
||||
|
|
@ -91,6 +93,7 @@
|
|||
|
||||
private ChristmasTreeSetupOptions _options = new();
|
||||
private bool _hasExpensePointTrigger = true;
|
||||
private bool _previewExpanded;
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@
|
|||
@foreach (var evt in GetAssignedEvents(context.AssignedEvents))
|
||||
{
|
||||
<MudChip T="string" Size="Size.Small" Color="GetEventColor(evt)" Variant="Variant.Outlined" Class="mr-1">
|
||||
@(_ = Term.GetThrowEventName(evt))
|
||||
@(_ = Term.GetThrowEventName(evt).Result)
|
||||
</MudChip>
|
||||
}
|
||||
</MudTd>
|
||||
|
|
|
|||
Loading…
Reference in New Issue