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
// Only if the `height` was customized by the user (and thus defined), we use it to set the cover's height and skip the default behaviour of fixed aspect-ratio.
26
+
height: number|undefined;
27
+
}
23
28
24
-
// Calculate the recommended aspect ratio for this height
25
-
// This maintains the 4:1 ratio, allowing images to scale proportionally
26
-
// and adapt their height when container width doesn't match the ideal ratio
// When a user set a custom cover height, we return the clamped cover height. If no height is set, we want to preserve the existing logic for sizing of the cover image and return `undefined` for height.
0 commit comments