fix(SW-1188): set height of image wrapper
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
.imageWrapper {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.imageWrapper::after {
|
||||
|
||||
@@ -47,10 +47,10 @@ export default function Card({
|
||||
? backgroundImage.dimensions.aspectRatio * imageHeight
|
||||
: 420)
|
||||
|
||||
const imageWrapper =
|
||||
height === "dynamic"
|
||||
? `${styles.imageWrapper} ${styles.dynamic}`
|
||||
: `${styles.imageWrapper} ${styles.fixed}`
|
||||
// const imageWrapper =
|
||||
// height === "dynamic"
|
||||
// ? `${styles.imageWrapper} ${styles.dynamic}`
|
||||
// : `${styles.imageWrapper} ${styles.fixed}`
|
||||
|
||||
return (
|
||||
<article
|
||||
@@ -61,7 +61,7 @@ export default function Card({
|
||||
})}
|
||||
>
|
||||
{backgroundImage && (
|
||||
<div className={imageGradient ? imageWrapper : ""}>
|
||||
<div className={imageGradient ? styles.imageWrapper : ""}>
|
||||
<Image
|
||||
src={backgroundImage.url}
|
||||
className={styles.image}
|
||||
|
||||
Reference in New Issue
Block a user