diff --git a/components/common/CommonPaginator.vue b/components/common/CommonPaginator.vue index 9d26aaba..2cd07162 100644 --- a/components/common/CommonPaginator.vue +++ b/components/common/CommonPaginator.vue @@ -10,6 +10,7 @@ const { keyProp = 'id', virtualScroller = false, eventType = 'update', + buffer = 10, preprocess, } = defineProps<{ paginator: Paginator @@ -17,6 +18,10 @@ const { virtualScroller?: boolean stream?: Promise eventType?: 'notification' | 'update' + // When preprocess is used, buffer is the number of items that will be hidden + // until the next pagination to avoid border effect between pages when reordering + // and grouping items + buffer?: number preprocess?: (items: T[]) => any[] }>() diff --git a/components/status/edit/StatusEditHistory.vue b/components/status/edit/StatusEditHistory.vue index c5d29343..2d6f2f80 100644 --- a/components/status/edit/StatusEditHistory.vue +++ b/components/status/edit/StatusEditHistory.vue @@ -13,12 +13,13 @@ const showHistory = (edit: mastodon.v1.StatusEdit) => { } const timeAgoOptions = useTimeAgoOptions() +// TODO: rework, this is only reversing the first page of edits const reverseHistory = (items: mastodon.v1.StatusEdit[]) => [...items].reverse()