diff --git a/routes/_components/Status.html b/routes/_components/Status.html index 18b1ad8..be135fd 100644 --- a/routes/_components/Status.html +++ b/routes/_components/Status.html @@ -190,13 +190,10 @@ components: { Avatar }, - data: () => ({ - status: null, - }), computed: { - relativeDate: (status) => { - let date = new Date(status.created_at) - return relativeFormat.format(date) + createdAtDate: (status) => status.created_at, + relativeDate: (createdAtDate) => { + return relativeFormat.format(new Date(createdAtDate)) }, original: (status) => status.reblog ? status.reblog.account : status.account }, diff --git a/routes/_components/VirtualList.html b/routes/_components/VirtualList.html index 2aebc88..6111631 100644 --- a/routes/_components/VirtualList.html +++ b/routes/_components/VirtualList.html @@ -1,13 +1,12 @@ -<:Window bind:scrollY='scrollY' bind:innerHeight='innerHeight' /> +<:Window bind:scrollY='scrollY' bind:innerHeight='innerHeight'/>
- {{#each $visibleItems as item, index @key}} - + {{#each $visibleItems as item @key}} + {{/each}}