mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-05 17:53:12 +02:00
fix: video
This commit is contained in:
parent
33e6530b93
commit
36db02d4ab
@ -34,12 +34,14 @@ const LazyVideo = ({ url, title = 'YouTube video player' }) => {
|
||||
onKeyDown={(e) => e.key === 'Enter' && handleLoad()}
|
||||
role='button'
|
||||
tabIndex={0}
|
||||
style={{
|
||||
backgroundImage: `url(https://img.youtube.com/vi/${videoId}/maxresdefault.jpg)`,
|
||||
}}
|
||||
aria-label={`Load ${title}`}
|
||||
style={{ width: '414px', height: '232px' }}
|
||||
>
|
||||
{/* Play button overlay */}
|
||||
<img
|
||||
src={`https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`}
|
||||
fetchPriority='high'
|
||||
/>
|
||||
<div className={styles.playButton}>
|
||||
<svg
|
||||
width='32'
|
||||
|
@ -133,7 +133,6 @@ export default function Root({ children }: { children: React.ReactNode }) {
|
||||
});
|
||||
|
||||
return () => {
|
||||
clearTimeout(fallbackTimer);
|
||||
window.removeEventListener('scroll', handleUserInteraction);
|
||||
window.removeEventListener('click', handleUserInteraction);
|
||||
window.removeEventListener('touchstart', handleUserInteraction);
|
||||
|
Loading…
Reference in New Issue
Block a user