Add user list toggle with responsive visibility in ChatService and ChatInfoComponent, implement UserListComponent, and update styles for user list and toggles.
This commit is contained in:
@@ -7,11 +7,19 @@
|
||||
}
|
||||
<span class="message-count">({{ chatChannel.totalMessages }})</span>
|
||||
</span>
|
||||
<div class="user-list-toggle" (click)="toggleUserList()" [class.active]="userListVisible()">
|
||||
<svg-users [style.color]="getServerTextColor(chatChannel.name)"/>
|
||||
@if (isMobile()) {
|
||||
<span [style.color]="getServerTextColor(chatChannel.name)">
|
||||
{{ userListVisible() ? 'Channels' : 'Users' }}
|
||||
</span>
|
||||
}
|
||||
</div>
|
||||
<div class="notification-icon">
|
||||
@if (notificationEnabled()) {
|
||||
<svg-notification-enabled (click)="disableNotifications()"/>
|
||||
<svg-notification-enabled (click)="disableNotifications()" [style.color]="getServerTextColor(chatChannel.name)"/>
|
||||
} @else {
|
||||
<svg-notification-disabled (click)="enableNotifications()"/>
|
||||
<svg-notification-disabled (click)="enableNotifications()" [style.color]="getServerTextColor(chatChannel.name)"/>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user