🧹 Clean up

pull/5/head
Alexis Drai 2 years ago
parent b1a582a2ee
commit 8eda266e57

@ -3,23 +3,27 @@
<div class="side-by-side">
<div class="inventory-grid">
@for (int row = 0; row < 3; row++) { <div class="inventory-row">
@for (int col = 0; col < 6; col++) { <div class="inventory-slot">
@if (InventoryContent != null && InventoryContent.Count > (row * 6 + col))
@for (int row = 0; row < 3; row++)
{
<div class="inventory-row">
@for (int col = 0; col < 6; col++)
{
<InventoryItem Position="(row * 6 + col)" IsInList="false" IsInInventory="true"/>
<div class="inventory-slot">
@if (InventoryContent != null && InventoryContent.Count > (row * 6 + col))
{
<InventoryItem Position="(row * 6 + col)" IsInList="false" IsInInventory="true" />
}
</div>
}
</div>
}
</div>
}
</div>
</div>
<div>
<h2>@Localizer["list_of_items"]</h2>
<InventoryList Items="Items" />
</div>
<div>
<h2>@Localizer["list_of_items"]</h2>
<InventoryList Items="Items" />
</div>
</div>
</div>
</CascadingValue>

@ -11,7 +11,7 @@ namespace blazor_lab.Components
}
public partial class InventoryList
{
[CascadingParameter]
[CascadingParameter]
public Inventory Parent { get; set; }
[Inject]

@ -1,5 +1,4 @@
using blazor_lab.Components;
using blazor_lab.Services;
using blazor_lab.Services;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Localization;

@ -5,7 +5,6 @@ using Blazored.Modal;
using Blazored.Modal.Services;
using Blazorise.DataGrid;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Localization;
namespace blazor_lab.Pages
{

Loading…
Cancel
Save