Skip to content

Commit 5867ef9

Browse files
16/9 div container which displays a colored element if the fallback thumbnail cannot be displayed
1 parent 1c5a58b commit 5867ef9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/streamFeed/StreamThumbnail.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const StreamThumbnail: FC<StreamThumbnailProps> = ({
2424
const [loaded, setLoaded] = useState<boolean>(false)
2525

2626
return (
27-
<>
27+
<div style={{ aspectRatio: '16/9' }}>
2828
{loaded ? (
2929
<img
3030
src={getImage(
@@ -62,7 +62,7 @@ const StreamThumbnail: FC<StreamThumbnailProps> = ({
6262
data-testid={testid}
6363
/>
6464
)}
65-
</>
65+
</div>
6666
)
6767
}
6868

0 commit comments

Comments
 (0)