You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AspectRatio, which is used by Thumbnail, takes an objectFit prop but Thumbnail doesn't take or set objectFit, so we're stuck with the default object-cover when using Thumbnail currently (well, this can be worked around temporarily with a !-rule).
Let's add flexibility by adding an objectFit prop to Thumbnail and forward that on to AspectRatio.
The text was updated successfully, but these errors were encountered:
Right now a
!
-rule is required to adjustobject-fit
for content within aThumbnail
:AspectRatio
, which is used byThumbnail
, takes anobjectFit
prop butThumbnail
doesn't take or setobjectFit
, so we're stuck with the defaultobject-cover
when usingThumbnail
currently (well, this can be worked around temporarily with a!
-rule).Let's add flexibility by adding an
objectFit
prop toThumbnail
and forward that on toAspectRatio
.The text was updated successfully, but these errors were encountered: