diff --git a/myBlazorApp/myBlazorApp/Pages/Inventory.razor b/myBlazorApp/myBlazorApp/Pages/Inventory.razor index 5ad0477..97de069 100644 --- a/myBlazorApp/myBlazorApp/Pages/Inventory.razor +++ b/myBlazorApp/myBlazorApp/Pages/Inventory.razor @@ -5,68 +5,72 @@

Inventory

- -
- - - - - - - - - - - - - - - - - - -
-
- - @foreach (var item in itemsInventory) - { - - }

CurrentCulture: @CultureInfo.CurrentCulture

-
+
+
+
+ + + + + + + + + + + + + + + + + + +
+
+
+ + @*@foreach (var item in itemsInventory) + { + + }*@ -
-
-

- List of items -

- @*SearchBar*@ -
- - - - - - @if (File.Exists($"{WebHostEnvironment.WebRootPath}/images/{context.Name}.png")) - { - @context.DisplayName - } - else - { - @context.DisplayName - } - - - +
+
+

+ List of items +

+ @*SearchBar*@ + +
+ + + + + + + @if (File.Exists($"{WebHostEnvironment.WebRootPath}/images/{context.Name}.png")) + { + @context.DisplayName + } + else + { + @context.DisplayName + } + + + +
diff --git a/myBlazorApp/myBlazorApp/Pages/Inventory.razor.css b/myBlazorApp/myBlazorApp/Pages/Inventory.razor.css index 34491e9..c3bcf2e 100644 --- a/myBlazorApp/myBlazorApp/Pages/Inventory.razor.css +++ b/myBlazorApp/myBlazorApp/Pages/Inventory.razor.css @@ -1,6 +1,21 @@ -.inventory-items { +.body { + display: flex; +} + +.inventory-items { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; display: grid; width: 40%; } + +.align-start { + align-items: flex-start; + justify-content: start +} + +.align-end { + align-content: flex-end; + justify-content: end; + width: 400px; +} \ No newline at end of file