Skip to content

Commit bd7c20f

Browse files
committed
perf: videos
1 parent 325c9b4 commit bd7c20f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/respository/Tabs.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,7 @@ const Tabs = ({ repo, t, i18n_lang }: RepositoryProps) => {
8989
{repo.video_url && (
9090
<div className='aspect-video w-full overflow-hidden rounded-lg border border-gray-200 dark:border-gray-700'>
9191
<iframe
92-
src={`${repo.video_url}${
93-
repo.video_url.includes('?') ? '&' : '?'
94-
}autoplay=0`}
92+
src={`${repo.video_url}&autoplay=0&poster=true`}
9593
className='h-full w-full'
9694
allowFullScreen
9795
title={`${repo.name} video player`}

0 commit comments

Comments
 (0)