- Load thread after creation - Change thread list from DataList to Flex - Move unread badge to right side of chat thread list item - Fix avatar rerendering after another message is added to message group - Add styling to thread list - Change message input to support markdown and add markdown rendering for message contents
29 lines
No EOL
556 B
C#
29 lines
No EOL
556 B
C#
namespace LANCommander.UI;
|
|
|
|
internal class ClassBuilder
|
|
{
|
|
private readonly List<string> _classes = new();
|
|
|
|
public ClassBuilder Add(string? className)
|
|
{
|
|
if (string.IsNullOrWhiteSpace(className))
|
|
return this;
|
|
|
|
_classes.Add(className);
|
|
|
|
return this;
|
|
}
|
|
|
|
public ClassBuilder If(Func<bool> condition, string className)
|
|
{
|
|
if (condition())
|
|
_classes.Add(className);
|
|
|
|
return this;
|
|
}
|
|
|
|
public string Build()
|
|
{
|
|
return String.Join(' ', _classes);
|
|
}
|
|
} |