Skip to content

Commit

Permalink
remove reverse
Browse files Browse the repository at this point in the history
it was messing with Angular's change detection and causing the list to invert on every interaction
  • Loading branch information
jhuleatt committed May 14, 2024
1 parent b8a9134 commit 5d57db6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="min-h-screen h-full w-full bg-navy-30">
<div class="w-3/4 bg-navy-10 min-h-screen h-full mx-auto flex flex-col flex-grow pb-56 overflow-auto">
@for (message of (messages$ | async)?.reverse(); track message) {
<div> <!-- TODO: I think this div can be removed-->
@for (message of (messages$ | async); track message) {
<div> <!-- TODO: I think this div can be removed-->
<div class="flex flex-col flex-grow p-4 gap-3">
@if (user$ | async; as user) {
<div class="flex flex-nowrap gap-4" [class.flex-row-reverse]="user.uid === message['uid']">
Expand Down

0 comments on commit 5d57db6

Please sign in to comment.