From cc5a61fc092b3b275c937d2a6c559b3b617f188b Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Sun, 17 Mar 2024 13:52:19 +0100 Subject: [PATCH] Improved Manage Categories Page layout --- Wave/Components/Pages/ManageCategories.razor | 40 +++++++++++++------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/Wave/Components/Pages/ManageCategories.razor b/Wave/Components/Pages/ManageCategories.razor index 50cdb9d..676c29c 100644 --- a/Wave/Components/Pages/ManageCategories.razor +++ b/Wave/Components/Pages/ManageCategories.razor @@ -2,6 +2,7 @@ @using Microsoft.EntityFrameworkCore @using Wave.Data @using System.ComponentModel.DataAnnotations +@using Humanizer @using Wave.Utilities @rendermode InteractiveServer @@ -52,19 +53,32 @@ bg-warning text-warning-content bg-error text-error-content --> - +
+ + + + + + + + @foreach (var category in Categories) { + string postfix = CategoryUtilities.GetCssClassPostfixForColor(category.Color); + + + + + + } +
@Localizer["Name"]@Localizer["Type"]
@category.Name + @category.Color.Humanize() + + +
+
@code { [CascadingParameter(Name = "TitlePostfix")]