Updating game data to mid season patch and made card gallery nicer
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 16px;
|
||||
padding: 0;
|
||||
max-width: 720px;
|
||||
max-width: 850px;
|
||||
width: 92vw;
|
||||
max-height: 88vh;
|
||||
overflow-y: auto;
|
||||
@@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
.detail-image {
|
||||
flex: 0 0 260px;
|
||||
flex: 0 0 320px;
|
||||
}
|
||||
|
||||
.detail-image img {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
@using Model
|
||||
@namespace Shared.Components
|
||||
@namespace Shared.Components
|
||||
|
||||
<div class="deck-card-row">
|
||||
@foreach (var group in Cards.GroupBy(x => x))
|
||||
@@ -29,7 +28,7 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public List<string> Cards { get; set; } = [];
|
||||
[Parameter] [EditorRequired] public List<string> Cards { get; set; } = [];
|
||||
[Parameter] public EventCallback<CardData?> OnSelectCard { get; set; }
|
||||
|
||||
private async Task SelectCard(CardData? card)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public List<(int Cost, int Count)> Distribution { get; set; } = [];
|
||||
[Parameter] [EditorRequired] public List<(int Cost, int Count)> Distribution { get; set; } = [];
|
||||
[Parameter] public int MaxCostLabel { get; set; } = 10;
|
||||
|
||||
private int MaxCount => Distribution.Count > 0 ? Distribution.Max(x => x.Count) : 0;
|
||||
|
||||
Reference in New Issue
Block a user