Minor fixes
This commit is contained in:
@@ -28,9 +28,9 @@ export function relativeTimestamp(epochTime: number): string {
|
||||
if (isSameDay || isSameWeek) {
|
||||
return diffDuration.humanize(true);
|
||||
} else if (isSameMonth) {
|
||||
return timestamp.format('Do @ h:mm A');
|
||||
return timestamp.format('Do h:mm A');
|
||||
} else if (isThisYear) {
|
||||
return timestamp.format('MMMM Do @ h:mm A');
|
||||
return timestamp.format('MMMM Do h:mm A');
|
||||
} else {
|
||||
return timestamp.format('MMMM Do YYYY h:mm A');
|
||||
}
|
||||
|
||||
@@ -6,11 +6,15 @@
|
||||
import ItemsList from '$lib/components/ItemsList.svelte';
|
||||
import { resolve } from '$app/paths';
|
||||
import { _ } from '$lib/i18n';
|
||||
import { isYTBackend } from '$lib/misc';
|
||||
|
||||
let currentPage = 1;
|
||||
let videos: (VideoBase | Video | PlaylistPageVideo)[] = $state($feedCacheStore.subscription);
|
||||
|
||||
async function loadMore(event: InfiniteEvent) {
|
||||
// Not supported or needed on YT backend
|
||||
if (isYTBackend()) return;
|
||||
|
||||
currentPage++;
|
||||
const feed = await getFeed(100, currentPage);
|
||||
if (feed.videos.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user