wip: optimizations

This commit is contained in:
2026-05-23 15:28:40 +02:00
parent 5bf506af03
commit 155fe20862
89 changed files with 7431 additions and 392 deletions

View File

@@ -22,19 +22,29 @@
<div
appThemeNode="dmConversationList"
class="min-h-0 flex-1 overflow-y-auto p-2"
class="flex min-h-0 flex-1 flex-col"
>
@if (directMessages.conversations().length === 0) {
<div class="flex h-full items-center justify-center px-4 text-center text-sm text-muted-foreground">No direct messages yet.</div>
} @else {
<div class="space-y-1">
@for (conversation of directMessages.conversations(); track trackConversationId($index, conversation)) {
<app-virtual-list
class="block h-full p-2"
[items]="directMessages.conversations()"
[estimateSize]="64"
[overscan]="6"
[trackBy]="trackConversationId"
>
<ng-template
#item
let-conversation
>
<app-dm-conversation-item
class="block pb-1"
[conversation]="conversation"
(conversationOpened)="conversationSelected.emit($event)"
/>
}
</div>
</ng-template>
</app-virtual-list>
}
</div>