mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
desktop: Keep list rows in place when new ones arrive
A new issue, patch or release at the top of the list pushed the rows the user was looking at down by one.
This commit is contained in:
@@ -338,6 +338,7 @@
|
||||
</div>
|
||||
<VirtualList
|
||||
items={searchResults}
|
||||
keepRowsOnPrepend={!debouncedSearch.current}
|
||||
hasMore={list.more}
|
||||
loadingMore={list.loadingMore}
|
||||
onLoadMore={() => list.loadMore()}
|
||||
|
||||
@@ -366,6 +366,7 @@
|
||||
</div>
|
||||
<VirtualList
|
||||
items={searchResults}
|
||||
keepRowsOnPrepend={!debouncedSearch.current}
|
||||
hasMore={list.more}
|
||||
loadingMore={list.loadingMore}
|
||||
onLoadMore={() => list.loadMore()}
|
||||
|
||||
@@ -193,6 +193,7 @@
|
||||
<ScrollArea style="height: 100%; min-width: 0;">
|
||||
<VirtualList
|
||||
items={list.items}
|
||||
keepRowsOnPrepend
|
||||
hasMore={list.more}
|
||||
loadingMore={list.loadingMore}
|
||||
onLoadMore={() => list.loadMore()}
|
||||
|
||||
Reference in New Issue
Block a user