feat(Logo): Konvertierung von Klassen in ein Wörterbuch anstelle von getrennten Eigenschaften

This commit is contained in:
Developer 02
2025-02-13 00:19:59 +01:00
parent 934414c3b6
commit 54e3eed557
5 changed files with 10 additions and 8 deletions

View File

@@ -3,9 +3,9 @@
public class Logo
{
public string Src { get; init; } = string.Empty;
public string LockedPageClass { get; init; } = string.Empty;
public string ShowPageClass { get; init; } = string.Empty;
public Dictionary<string, string> Classes { get; init; } = new();
public string ClassIn(string page) => Classes.TryGetValue(page, out var cls) && cls is not null ? cls : string.Empty;
}
}