this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

The math here is quite forgiving

+1 -1
+1 -1
src/components/media.jsx
··· 375 375 const displayNaturalHeight = 376 376 (naturalHeight * clientWidth) / naturalWidth; 377 377 const almostSimilarHeight = 378 - Math.abs(displayNaturalHeight - clientHeight) < 2; 378 + Math.abs(displayNaturalHeight - clientHeight) < 5; 379 379 380 380 if (almostSimilarHeight) { 381 381 setHasNaturalAspectRatio(true);