Refactor mini-message system: add precomputed styles for optimization, update models and components to use preprocessed nodes, and display total message counts in ChatInfo UI.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
@if (selectedChannel(); as chatChannel) {
|
||||
<div class="full-width"
|
||||
[style.background-color]="getServerColor(chatChannel.name ?? '')">
|
||||
<span class="channel" [style.color]="getServerTextColor(chatChannel.name ?? '')">
|
||||
[style.background-color]="getServerColor(chatChannel.name)">
|
||||
<span class="channel" [style.color]="getServerTextColor(chatChannel.name)">
|
||||
@for (segment of getDisplayName(chatChannel); track $index) {
|
||||
<span [style.color]="segment.color">{{ segment.text }}</span>
|
||||
}
|
||||
<span class="message-count">({{ chatChannel.totalMessages }})</span>
|
||||
</span>
|
||||
<div class="notification-icon">
|
||||
@if (notificationEnabled()) {
|
||||
|
||||
Reference in New Issue
Block a user