Update VideoThumbnail.svelte

This commit is contained in:
WardPearce
2026-03-17 11:36:20 +13:00
parent 0c60b708df
commit 3ea10f8b49
@@ -22,6 +22,7 @@
import Share from '../Share.svelte';
import { deleteWatchHistoryItem, saveWatchHistory } from '$lib/api';
import type { ThumbnailVideo } from '$lib/thumbnail';
import { truncate } from '$lib/misc';
interface Props {
video: ThumbnailVideo;
@@ -332,10 +333,10 @@
class:author={!sideways}
href={resolve(`/channel/[authorId]`, { authorId: video.authorId })}
data-sveltekit-preload-data="off"
>{video.author}
>{truncate(video.author, 20)}
</a>
{:else}
<p>{video.author}</p>
<p>{truncate(video.author, 20)}</p>
{/if}
{#if 'promotedBy' in video && video.promotedBy === 'favourited'}