ui fixes
This commit is contained in:
parent
31bbaaf70a
commit
383db346eb
|
|
@ -64,19 +64,21 @@
|
||||||
</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"> *@
|
||||||
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
|
@* <MudStack>
|
||||||
{
|
@foreach (var (num, count) in ChristmasTreeGameSetup.GetTreeStructure(_options.Variant).OrderBy(x => x.Key))
|
||||||
<MudText Typo="Typo.body2">
|
{
|
||||||
@num: @(new string('●', count))
|
<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>
|
||||||
}
|
</MudStack> *@
|
||||||
<MudText Typo="Typo.caption" Color="Color.Secondary" Class="mt-2">
|
@* </MudExpansionPanel> *@
|
||||||
Gesamt: @ChristmasTreeGameSetup.GetTotalFields(_options.Variant) Felder
|
@* </div> *@
|
||||||
</MudText>
|
|
||||||
</MudStack>
|
|
||||||
</MudExpansionPanel>
|
|
||||||
</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()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue