docs: adds detail about maintaining aspect ratio

This commit is contained in:
James
2021-08-06 11:11:51 -04:00
parent dea54a4ccc
commit 8a022e3c55

View File

@@ -66,6 +66,16 @@ const Media = {
width: 768,
height: 1024,
crop: 'centre',
},
{
name: 'tablet',
width: 1024,
// By specifying `null` or leaving a height undefined,
// the image will be sized to a certain width,
// but it will retain its original aspect ratio
// and calculate a height automatically.
height: null,
crop: 'centre',
}
],
adminThumbnail: 'thumbnail',