I use React bootstrap Carousel on my website. When I resize the browser, the carousel doesn't resize proportionally. The width of Carousel adjusts correctly but the height doesn't. It creates a gap underneath the image as you can see from the arrows don't align in the middle of the image.
I use first example from the React Bootstrap page. Exact same HTML with only change the picture in Carousel. I already try put this HTML on XAMPP and it works fine but on REACT it doesn't.
How can I adjust the Carousel to resize proportionally?
Link to React Bootstrap example I've used. https://react-bootstrap.netlify.app/components/carousel/#carousels
The HTML and image is below.
<Carousel>
<Carousel.Item>
<img
className="d-block w-100"
src={require('../../img/Testing/slab00.jpg')}
alt="First slide"
/>
<Carousel.Caption>
<h3>First slide label</h3>
<p>Nulla vitae elit libero, a pharetra augue mollis interdum.</p>
</Carousel.Caption>
</Carousel.Item>
<Carousel.Item>
<img
className="d-block w-100"
src={require('../../img/Testing/slab01.jpg')}
alt="Third slide"
/>
<Carousel.Caption>
<h3>Second slide label</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
</Carousel.Caption>
</Carousel.Item>
<Carousel.Item>
<img
className="d-block w-100"
src={require('../../img/Testing/slab00.jpg')}
alt="Third slide"
/>
<Carousel.Caption>
<h3>Third slide label</h3>
<p>Praesent commodo cursus magna, vel scelerisque nisl consectetur.</p>
</Carousel.Caption>
</Carousel.Item>
</Carousel>