feat: avoid reordering pagination border effects (#877)
This commit is contained in:
parent
f8692ed480
commit
efe406df5b
8 changed files with 19 additions and 10 deletions
|
@ -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()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonPaginator :paginator="paginator" key-prop="createdAt" :preprocess="reverseHistory">
|
||||
<CommonPaginator :paginator="paginator" key-prop="createdAt" :preprocess="reverseHistory" :buffer="0">
|
||||
<template #default="{ items, item, index }">
|
||||
<CommonDropdownItem
|
||||
px="0.5"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue