perf: use a virtual list

This commit is contained in:
Xylight committed 2024-07-04 16:13:56 -07:00
1 parent 25b1ab8d8e
commit 58b6c12a8b
5 files changed
+130 -186

No files matched your search

+2 -1
View File
@@ -70,6 +70,7 @@
on:click={(e) => {
onClick(e)
}}
style={$$props.style ?? ''}
>
<PostMeta
community={hideCommunity ? undefined : post.community}
@@ -108,7 +109,7 @@
<PostMediaCompact
{view}
bind:post={post.post}
bind:type={type}
bind:type
class="{$userSettings.leftAlign
? 'mr-2'
: 'ml-2'} flex-shrink no-list-margin"