I made an image viewer component to pinch-zoom in its mobile app using react ionic. My problem is that when I zoom the image, it will be zoomed just to the image's width. I want the image to be zoomed to the edge of the card padding. here are my codes
<React.Fragment>
<IonCard id="ImgViewCard">
<IonCardContent>
<TransformWrapper>
<TransformComponent>
<IonImg id="ImgViewImage" src={prop.ImgSource}></IonImg>
</TransformComponent>
</TransformWrapper>
</IonCardContent>
</IonCard>
</React.Fragment>;
#ImgViewCard {
height: 400px;
display: flex;
justify-content: center;
align-items: center;
}
#ImgViewImage {
height: 370px;
}
How can I fix this? What is your suggestion?

