Ensure there is a thumbnail for videos on web (#9019)

This commit is contained in:
Samuel Newman
2025-09-10 18:49:44 +03:00
committed by GitHub
parent 5b8631d188
commit 20ff3e3ba0
2 changed files with 14 additions and 6 deletions
@@ -86,7 +86,13 @@ export function VideoEmbed({
const contents = (
<div
ref={ref}
style={{display: 'flex', flex: 1, cursor: 'default'}}
style={{
display: 'flex',
flex: 1,
cursor: 'default',
backgroundImage: `url(${embed.thumbnail})`,
backgroundSize: 'cover',
}}
onClick={evt => evt.stopPropagation()}>
<ErrorBoundary renderError={renderError} key={key}>
<OnlyNearScreen>