- 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
23 lines
No EOL
716 B
Text
23 lines
No EOL
716 B
Text
@using System.Globalization
|
|
|
|
@namespace LANCommander.UI.Components
|
|
|
|
<Flex Class="chat-message-group" Gap="FlexGap.Small">
|
|
<SafeAvatar Username="@UserName" />
|
|
|
|
<Flex Direction="FlexDirection.Vertical">
|
|
<Flex Gap="FlexGap.Small">
|
|
<span class="chat-message-author">@UserName</span>
|
|
<span class="chat-message-timestamp">@StartedOn.ToString(CultureInfo.CurrentCulture)</span>
|
|
</Flex>
|
|
|
|
@ChildContent
|
|
</Flex>
|
|
</Flex>
|
|
|
|
@code {
|
|
[Parameter] public RenderFragment? ChildContent { get; set; }
|
|
[Parameter] public string UserName { get; set; }
|
|
[Parameter] public Guid UserId { get; set; }
|
|
[Parameter] public DateTime StartedOn { get; set; }
|
|
} |